diff options
Diffstat (limited to 'demos/3rdparty/bubbles')
-rw-r--r-- | demos/3rdparty/bubbles/gfxconf.h | 9 | ||||
-rw-r--r-- | demos/3rdparty/bubbles/main.c | 8 |
2 files changed, 8 insertions, 9 deletions
diff --git a/demos/3rdparty/bubbles/gfxconf.h b/demos/3rdparty/bubbles/gfxconf.h index 9b1f76a6..344a986e 100644 --- a/demos/3rdparty/bubbles/gfxconf.h +++ b/demos/3rdparty/bubbles/gfxconf.h @@ -9,12 +9,13 @@ #ifndef _GFXCONF_H #define _GFXCONF_H +/* The operating system to use - one of these must be defined */ +#define GFX_USE_OS_CHIBIOS TRUE +#define GFX_USE_OS_WIN32 FALSE +#define GFX_USE_OS_POSIX FALSE + /* GFX sub-systems to turn on */ #define GFX_USE_GDISP TRUE -#define GFX_USE_GWIN FALSE -#define GFX_USE_GEVENT FALSE -#define GFX_USE_GTIMER FALSE -#define GFX_USE_GINPUT FALSE /* Features for the GDISP sub-system. */ #define GDISP_NEED_VALIDATION FALSE diff --git a/demos/3rdparty/bubbles/main.c b/demos/3rdparty/bubbles/main.c index 81c5dbe3..62ef2830 100644 --- a/demos/3rdparty/bubbles/main.c +++ b/demos/3rdparty/bubbles/main.c @@ -8,11 +8,11 @@ * modifiable, provided his name is kept in the source. * -- * Chris Baird,, <cjb@brushtail.apana.org.au> April 2013 + * + * Modified Andrew Hannam (inmarket) 2013-04-29 New GFX calls */ #include <math.h> -#include "ch.h" -#include "hal.h" #include "gfx.h" @@ -149,9 +149,7 @@ int main (void) { int pass = 0; - halInit(); - chSysInit(); - gdispInit(); + gfxInit(); chThdSleepMilliseconds (10); gdispClear (background); /* glitches.. */ |