summaryrefslogtreecommitdiff
path: root/src/gfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gfx.h')
-rw-r--r--src/gfx.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gfx.h b/src/gfx.h
index d3f1ec3..9b35868 100644
--- a/src/gfx.h
+++ b/src/gfx.h
@@ -41,6 +41,11 @@
#define FONT_CURSOR '\007'
#define FONT_COPYRIGHT '\010'
+/* The size of the display
+*/
+#define GFX_WIDTH 320
+#define GFX_HEIGHT 300
+
/* ---------------------------------------- INTERFACES
*/
@@ -50,6 +55,12 @@
void GFXInit(void);
+/* Size of the screen
+*/
+int GFXHeight(void);
+int GFXWidth(void);
+
+
/* Get the SDL_Surface for the screen
*/
SDL_Surface *GFXGetSurface(void);
@@ -87,7 +98,7 @@ void GFXKeyRepeat(int repeat);
SDL_Event *GFXGetKey(void);
-/* Wait for a keypress (key up event)
+/* Wait for a keypress. Note that key up events are returned.
*/
SDL_Event *GFXWaitKey(void);