mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-11 13:29:21 +03:00
Remove BITMAP_READY flag.
This commit is contained in:
parent
4c6a176d39
commit
ff480312fe
@ -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) */
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user