diff options
Diffstat (limited to 'demos/modules/gwin/basic')
| -rw-r--r-- | demos/modules/gwin/basic/gfxconf.h | 18 | ||||
| -rw-r--r-- | demos/modules/gwin/basic/main.c | 4 | 
2 files changed, 9 insertions, 13 deletions
diff --git a/demos/modules/gwin/basic/gfxconf.h b/demos/modules/gwin/basic/gfxconf.h index 3ef9c784..1e6784fd 100644 --- a/demos/modules/gwin/basic/gfxconf.h +++ b/demos/modules/gwin/basic/gfxconf.h @@ -31,9 +31,10 @@  #define _GFXCONF_H  /* The operating system to use - one of these must be defined */ -#define GFX_USE_OS_CHIBIOS		TRUE +#define GFX_USE_OS_CHIBIOS		FALSE  #define GFX_USE_OS_WIN32		FALSE -#define GFX_USE_OS_POSIX		FALSE +#define GFX_USE_OS_LINUX		FALSE +#define GFX_USE_OS_OSX			FALSE  /* GFX sub-systems to turn on */  #define GFX_USE_GDISP			TRUE @@ -42,15 +43,10 @@  /* Features for the GDISP sub-system. */  #define GDISP_NEED_VALIDATION	TRUE  #define GDISP_NEED_CLIP			TRUE -#define GDISP_NEED_TEXT			FALSE  #define GDISP_NEED_CIRCLE		TRUE -#define GDISP_NEED_ELLIPSE		FALSE -#define GDISP_NEED_ARC			FALSE -#define GDISP_NEED_SCROLL		FALSE -#define GDISP_NEED_PIXELREAD	FALSE -#define GDISP_NEED_CONTROL		FALSE -#define GDISP_NEED_MULTITHREAD	FALSE -#define GDISP_NEED_ASYNC		FALSE -#define GDISP_NEED_MSGAPI		FALSE + +/* Features for the GWIN subsystem. */ +#define GWIN_NEED_WINDOWMANAGER	TRUE  #endif /* _GFXCONF_H */ + diff --git a/demos/modules/gwin/basic/main.c b/demos/modules/gwin/basic/main.c index c46e6969..eee22f29 100644 --- a/demos/modules/gwin/basic/main.c +++ b/demos/modules/gwin/basic/main.c @@ -37,7 +37,7 @@ int main(void) {      /* Initialize and clear the display */      gfxInit(); -    gdispClear(Lime); +    gdispClear(White);      /* Create two windows */      { @@ -60,7 +60,7 @@ int main(void) {      gwinClear(GW2);      gwinDrawLine(GW1, 5, 30, 150, 110); -    for(i=5, j=0; i < 200 && j < 150; i+=3, j+=i/20) +    for(i = 5, j = 0; i < 200 && j < 150; i += 3, j += i/20)          	gwinDrawPixel(GW1, i, j);      /*    | 
