Remove BITMAP_READY flag.

This commit is contained in:
Michael Drake 2013-10-03 21:07:29 +01:00
parent 4c6a176d39
commit ff480312fe
2 changed files with 1 additions and 3 deletions

View File

@ -60,7 +60,6 @@
#define BITMAP_OPAQUE (1 << 0) /** image is opaque */
#define BITMAP_MODIFIED (1 << 1) /** buffer has been modified */
#define BITMAP_CLEAR_MEMORY (1 << 2) /** memory should be wiped */
#define BITMAP_READY (1 << 3) /** fully initialised */
#define BITMAP_SAVE_FULL_ALPHA (1 << 0) /** save with full alpha channel (if not opaque) */

View File

@ -77,7 +77,6 @@ static bool bitmap_initialise(struct bitmap *bitmap)
if (!bitmap->sprite_area)
return false;
bitmap->state |= BITMAP_READY;
/* area control block */
sprite_area = bitmap->sprite_area;
@ -314,7 +313,7 @@ unsigned char *bitmap_get_buffer(void *vbitmap)
assert(bitmap);
/* dynamically create the buffer */
if (!(bitmap->state & BITMAP_READY)) {
if (bitmap->sprite_area == NULL) {
if (!bitmap_initialise(bitmap))
return NULL;
}