summaryrefslogtreecommitdiff
path: root/riscos/bitmap.h
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2006-01-24 23:05:22 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2006-01-24 23:05:22 +0000
commitef1f971a9aec3adb6b350677eabca24681ce6a9d (patch)
tree2c123e5c1ecb52127f96916e5f9bfb0ce1e192f4 /riscos/bitmap.h
parent0631647241618112481faa43cf09df535514f848 (diff)
downloadnetsurf-ef1f971a9aec3adb6b350677eabca24681ce6a9d.tar.gz
netsurf-ef1f971a9aec3adb6b350677eabca24681ce6a9d.tar.bz2
[project @ 2006-01-24 23:05:22 by rjw]
Don't allocate memory until it's actually needed. svn path=/import/netsurf/; revision=2029
Diffstat (limited to 'riscos/bitmap.h')
-rw-r--r--riscos/bitmap.h7
1 files changed, 7 insertions, 0 deletions
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 */