summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2003-12-19 19:31:57 +0000
committerIan C <ianc@noddybox.co.uk>2003-12-19 19:31:57 +0000
commit9443eab98692b668fd35fc2a7e2cfb043953dbc7 (patch)
treeeb7082f5bfec8b065949e9b0e068837315db3e46 /src/main.c
parenta43db151b99687a85932f8172f73151bfcb93e88 (diff)
Added start of simple GUI and tweaked font
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/main.c b/src/main.c
index edf772f..d4bb65d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -31,6 +31,7 @@ static const char id[]="$Id$";
#include "z80.h"
#include "zx81.h"
#include "gfx.h"
+#include "gui.h"
#include "config.h"
#include "exit.h"
@@ -83,28 +84,33 @@ int main(int argc, char *argv[])
GFXClear(grey);
GFXPrint(1,1,black,"Quick SDL check");
GFXPrint(2,2,white,"Quick SDL check");
- GFXRect(100,100,20,20,white,TRUE);
+ GFXRect(100,100,20,20,black,TRUE);
GFXRect(99,99,22,22,white,FALSE);
+ GFXRect(80,80,1,1,black,TRUE);
+ GFXRect(80,90,1,1,black,FALSE);
+
+ GFXRect(90,80,2,2,black,TRUE);
+ GFXRect(90,90,2,2,black,FALSE);
+
+ GFXRect(100,80,3,3,black,TRUE);
+ GFXRect(100,90,3,3,black,FALSE);
+
GFXHLine(0,319,0,white);
GFXVLine(0,1,199,black);
{
- SDL_Event e;
int f;
- for(f=0;f<1000;f++)
+ for(f=0;f<10;f++)
{
GFXPlot(rand()%320,rand()%200,white);
GFXEndFrame(FALSE);
}
-
- do
- {
- SDL_WaitEvent(&e);
- } while(e.type!=SDL_KEYUP);
}
+ GUIMessage("Test Message","Hello\nWorld\n%s",SConfig(CONF_TAPEDIR));
+
SDL_Quit();
return EXIT_SUCCESS;