summaryrefslogtreecommitdiff
path: root/src/gfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gfx.h')
-rw-r--r--src/gfx.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gfx.h b/src/gfx.h
index 6d051d8..d89edee 100644
--- a/src/gfx.h
+++ b/src/gfx.h
@@ -158,6 +158,18 @@ void GFXPrintPaper(int x, int y, Uint32 col, Uint32 paper,
const char *format, ...);
+/* Draws a simply compressed bitmap. The data is in the form (where b is a
+ byte from the stream):
+
+ b < 0x80 Colour (0 Black, 1 Blue, 2 Red, 3 Magenta, 4 Green,
+ 5 Cyan, 6 Yellow, 7 White, 8 Grey)
+
+ b >= 0x80 Repeat the last colour b-0x80 times.
+*/
+void GFXBitmap(int x, int y, int w, int h,
+ const unsigned char *data);
+
+
#endif