aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-09-18 23:38:26 +1000
committerinmarket <andrewh@inmarket.com.au>2013-09-18 23:38:26 +1000
commit6858e33285e8c8ac4dc7285dd261152eecaee060 (patch)
treef2894f4c3a442caef92460eb4c71c8e541c05ec0 /demos
parent01a6d6ff95d72e6e9107d8c3e386c2bd2ce5c28d (diff)
downloaduGFX-6858e33285e8c8ac4dc7285dd261152eecaee060.tar.gz
uGFX-6858e33285e8c8ac4dc7285dd261152eecaee060.tar.bz2
uGFX-6858e33285e8c8ac4dc7285dd261152eecaee060.zip
Update demos so OS can be specified in the Makefile
Diffstat (limited to 'demos')
-rw-r--r--demos/modules/gdisp/gdisp_fonts_cyrillic/gfxconf.h8
-rw-r--r--demos/modules/gdisp/gdisp_images/gfxconf.h6
-rw-r--r--demos/modules/gdisp/gdisp_images_animated/gfxconf.h6
-rw-r--r--demos/modules/gdisp/gdisp_text/main.c3
4 files changed, 11 insertions, 12 deletions
diff --git a/demos/modules/gdisp/gdisp_fonts_cyrillic/gfxconf.h b/demos/modules/gdisp/gdisp_fonts_cyrillic/gfxconf.h
index 997e57dd..a282a5f8 100644
--- a/demos/modules/gdisp/gdisp_fonts_cyrillic/gfxconf.h
+++ b/demos/modules/gdisp/gdisp_fonts_cyrillic/gfxconf.h
@@ -15,10 +15,10 @@
#define _GFXCONF_H
/* The operating system to use - one of these must be defined */
-#define GFX_USE_OS_CHIBIOS FALSE
-#define GFX_USE_OS_WIN32 FALSE
-#define GFX_USE_OS_LINUX FALSE
-#define GFX_USE_OS_OSX FALSE
+//#define GFX_USE_OS_CHIBIOS FALSE
+//#define GFX_USE_OS_WIN32 FALSE
+//#define GFX_USE_OS_LINUX FALSE
+//#define GFX_USE_OS_OSX FALSE
/* GFX subsystems to turn on */
#define GFX_USE_GDISP TRUE
diff --git a/demos/modules/gdisp/gdisp_images/gfxconf.h b/demos/modules/gdisp/gdisp_images/gfxconf.h
index 74fffa61..9e37988c 100644
--- a/demos/modules/gdisp/gdisp_images/gfxconf.h
+++ b/demos/modules/gdisp/gdisp_images/gfxconf.h
@@ -31,9 +31,9 @@
#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
+//#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
diff --git a/demos/modules/gdisp/gdisp_images_animated/gfxconf.h b/demos/modules/gdisp/gdisp_images_animated/gfxconf.h
index eded2fc4..ab91a9e7 100644
--- a/demos/modules/gdisp/gdisp_images_animated/gfxconf.h
+++ b/demos/modules/gdisp/gdisp_images_animated/gfxconf.h
@@ -31,9 +31,9 @@
#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
+//#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
diff --git a/demos/modules/gdisp/gdisp_text/main.c b/demos/modules/gdisp/gdisp_text/main.c
index dee741fa..7ea3405e 100644
--- a/demos/modules/gdisp/gdisp_text/main.c
+++ b/demos/modules/gdisp/gdisp_text/main.c
@@ -30,7 +30,7 @@
#include "gfx.h"
int main(void) {
- coord_t width, height;
+ coord_t width;
font_t font1, font2, font3, font4;
const char *msg;
@@ -39,7 +39,6 @@ int main(void) {
// Get the screen size
width = gdispGetWidth();
- height = gdispGetHeight();
// Get the fonts we want to use
font1 = gdispOpenFont("UI2");