From 4cc85469cb26f8ea1a8f14f17bddb6a5cbea1e88 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Tue, 21 Feb 2006 20:49:12 +0000 Subject: [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 --- image/bitmap.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'image/bitmap.h') 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 #include +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); -- cgit v1.2.3