From ef1f971a9aec3adb6b350677eabca24681ce6a9d Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Tue, 24 Jan 2006 23:05:22 +0000 Subject: [project @ 2006-01-24 23:05:22 by rjw] Don't allocate memory until it's actually needed. svn path=/import/netsurf/; revision=2029 --- riscos/bitmap.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'riscos/bitmap.h') diff --git a/riscos/bitmap.h b/riscos/bitmap.h index 840660a73..7360b03b9 100644 --- a/riscos/bitmap.h +++ b/riscos/bitmap.h @@ -12,12 +12,19 @@ struct osspriteop_area; +typedef enum { + BITMAP_INITIALISE_DONE, /** Initialisation has been done */ + BITMAP_INITIALISE_QUICK, /** Just allocate memory */ + BITMAP_INITIALISE_FULL /** Clear the sprite buffer */ +} bitmap_initialisation; + struct bitmap { int width; int height; bool opaque; bool modified; bool persistent; + bitmap_initialisation init; osspriteop_area *sprite_area; /** Uncompressed data, or NULL */ char *compressed; /** Compressed data, or NULL */ -- cgit v1.2.3