diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2006-02-21 20:49:12 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2006-02-21 20:49:12 +0000 |
commit | 4cc85469cb26f8ea1a8f14f17bddb6a5cbea1e88 (patch) | |
tree | 2a8287146412196c1ded7a187afae58469d5f641 /image/bitmap.h | |
parent | b6c6d7777277caf99ade1389c180f4a428b4a1c6 (diff) | |
download | netsurf-4cc85469cb26f8ea1a8f14f17bddb6a5cbea1e88.tar.gz netsurf-4cc85469cb26f8ea1a8f14f17bddb6a5cbea1e88.tar.bz2 |
[project @ 2006-02-21 20:49:11 by rjw]
Allow any content to be used as a background. Simplify bitmap code.
svn path=/import/netsurf/; revision=2087
Diffstat (limited to 'image/bitmap.h')
-rw-r--r-- | image/bitmap.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/image/bitmap.h b/image/bitmap.h index 8c33b8100..c187b3ecb 100644 --- a/image/bitmap.h +++ b/image/bitmap.h @@ -20,12 +20,18 @@ #include <stdbool.h> #include <stdlib.h> +typedef enum { + BITMAP_READY, /** Bitmap buffer is ready */ + BITMAP_ALLOCATE_MEMORY, /** Allocate memory */ + BITMAP_CLEAR_MEMORY, /** Clear the memory */ +} bitmap_state; + struct content; /** An opaque image. */ struct bitmap; -struct bitmap *bitmap_create(int width, int height, bool clear); +struct bitmap *bitmap_create(int width, int height, bitmap_state state); void bitmap_set_opaque(struct bitmap *bitmap, bool opaque); bool bitmap_test_opaque(struct bitmap *bitmap); bool bitmap_get_opaque(struct bitmap *bitmap); |