aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-09-06 12:22:08 +1000
committerinmarket <andrewh@inmarket.com.au>2013-09-06 12:22:08 +1000
commitb53ab7adf4f04ad1da30c3a7fd7e9fecd0404d83 (patch)
tree5ecb47882c12c0aa000ea67d9345874662e743cb
parent05039b6af23e71b6930f1f9c8cebd446eec7c94a (diff)
downloaduGFX-b53ab7adf4f04ad1da30c3a7fd7e9fecd0404d83.tar.gz
uGFX-b53ab7adf4f04ad1da30c3a7fd7e9fecd0404d83.tar.bz2
uGFX-b53ab7adf4f04ad1da30c3a7fd7e9fecd0404d83.zip
Update demos slightly.
-rw-r--r--demos/modules/gdisp/gdisp_basics/gfxconf.h6
-rw-r--r--demos/modules/gdisp/gdisp_circles/gfxconf.h10
-rw-r--r--demos/modules/gdisp/gdisp_circles/main.c12
3 files changed, 16 insertions, 12 deletions
diff --git a/demos/modules/gdisp/gdisp_basics/gfxconf.h b/demos/modules/gdisp/gdisp_basics/gfxconf.h
index c2098c85..8adc7c8d 100644
--- a/demos/modules/gdisp/gdisp_basics/gfxconf.h
+++ b/demos/modules/gdisp/gdisp_basics/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_circles/gfxconf.h b/demos/modules/gdisp/gdisp_circles/gfxconf.h
index c5faba5d..8858cf02 100644
--- a/demos/modules/gdisp/gdisp_circles/gfxconf.h
+++ b/demos/modules/gdisp/gdisp_circles/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
@@ -52,4 +52,8 @@
#define GDISP_NEED_ASYNC FALSE
#define GDISP_NEED_MSGAPI FALSE
+#define GFX_USE_GMISC TRUE
+#define GMISC_NEED_FIXEDTRIG TRUE
+#define GMISC_NEED_FASTTRIG TRUE
+
#endif /* _GFXCONF_H */
diff --git a/demos/modules/gdisp/gdisp_circles/main.c b/demos/modules/gdisp/gdisp_circles/main.c
index 8feaa2e3..b8b90478 100644
--- a/demos/modules/gdisp/gdisp_circles/main.c
+++ b/demos/modules/gdisp/gdisp_circles/main.c
@@ -40,12 +40,12 @@ int main(void) {
height = gdispGetHeight();
// Code Here
- gdispDrawCircle(width/2, height/2, 20, Yellow);
- gdispFillCircle (width/4, height/4, 50, Blue);
- gdispFillEllipse (width-100, height-100, 30, 60, Red);
- gdispDrawEllipse (width-100, height-100, 50, 20, Yellow);
- gdispDrawArc(width-width/8, height/8, 30, 10, 70, Gray);
- gdispFillArc(width/8, height/8, 30, 10, 70, Gray);
+ gdispFillArc(width/2, height/2, width/4, -10, -45, White);
+ gdispDrawCircle(width/2+width/8, height/2-height/8, 13, Green);
+ gdispFillCircle (width/2+width/8, height/2-height/8, 10, Red);
+ gdispDrawArc(width/2+width/8, height/2-height/8, 20, 25, 115, Gray);
+ gdispFillEllipse (width-width/6, height-height/6, width/8, height/16, Blue);
+ gdispDrawEllipse (width-width/6, height-height/6, width/16, height/8, Yellow);
while(TRUE) {
gfxSleepMilliseconds(500);