aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/gwin
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-08-17 23:35:18 +1000
committerinmarket <andrewh@inmarket.com.au>2013-08-17 23:35:18 +1000
commitbbdbd637f00348357fb7919adfe8a3f406f1451d (patch)
treeb3787cf796cff116290d7b792cb987935b3aea67 /demos/modules/gwin
parent0e707769b41167f24a7dabcec735191b3d243c25 (diff)
downloaduGFX-bbdbd637f00348357fb7919adfe8a3f406f1451d.tar.gz
uGFX-bbdbd637f00348357fb7919adfe8a3f406f1451d.tar.bz2
uGFX-bbdbd637f00348357fb7919adfe8a3f406f1451d.zip
Update old demos for new fonts.
Diffstat (limited to 'demos/modules/gwin')
-rw-r--r--demos/modules/gwin/console/gfxconf.h8
-rw-r--r--demos/modules/gwin/console/main.c2
-rw-r--r--demos/modules/gwin/widgets/gfxconf.h4
3 files changed, 7 insertions, 7 deletions
diff --git a/demos/modules/gwin/console/gfxconf.h b/demos/modules/gwin/console/gfxconf.h
index 97a26438..90dbc7cb 100644
--- a/demos/modules/gwin/console/gfxconf.h
+++ b/demos/modules/gwin/console/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 FALSE
+//#define GFX_USE_OS_WIN32 FALSE
+//#define GFX_USE_OS_POSIX FALSE
/* GFX sub-systems to turn on */
#define GFX_USE_GDISP TRUE
@@ -54,7 +54,7 @@
#define GDISP_NEED_MSGAPI FALSE
/* Builtin Fonts */
-#define GDISP_INCLUDE_FONT_SMALL TRUE
+#define GDISP_INCLUDE_FONT_SMALL FALSE
#define GDISP_INCLUDE_FONT_LARGER FALSE
#define GDISP_INCLUDE_FONT_UI1 FALSE
#define GDISP_INCLUDE_FONT_UI2 TRUE
diff --git a/demos/modules/gwin/console/main.c b/demos/modules/gwin/console/main.c
index 197a8ad6..2175ce04 100644
--- a/demos/modules/gwin/console/main.c
+++ b/demos/modules/gwin/console/main.c
@@ -40,7 +40,7 @@ int main(void) {
gfxInit();
/* Set some fonts */
- font1 = gdispOpenFont("Small");
+ font1 = gdispOpenFont("UI2");
font2 = gdispOpenFont("UI2 Double");
gwinSetDefaultFont(font1);
diff --git a/demos/modules/gwin/widgets/gfxconf.h b/demos/modules/gwin/widgets/gfxconf.h
index 4fdcf212..50fcbf58 100644
--- a/demos/modules/gwin/widgets/gfxconf.h
+++ b/demos/modules/gwin/widgets/gfxconf.h
@@ -57,8 +57,8 @@
#define GDISP_NEED_MSGAPI FALSE
/* Builtin Fonts */
-#define GDISP_INCLUDE_FONT_DEJAVUSANS12 TRUE
-#define GDISP_NEED_ANTIALIAS TRUE
+#define GDISP_INCLUDE_FONT_UI2 TRUE
+#define GDISP_NEED_ANTIALIAS FALSE
/* GDISP image decoders */
#define GDISP_NEED_IMAGE_NATIVE FALSE