aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/gdisp/multiple_displays/main.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2015-02-05 00:17:38 +1000
committerinmarket <andrewh@inmarket.com.au>2015-02-05 00:17:38 +1000
commit189bad3e6a4e6d38e34eee0abebd9986260e95ce (patch)
tree796d61110cce1e8f2d5b8aa2ade4f39ec20ea545 /demos/modules/gdisp/multiple_displays/main.c
parentd8e46a098d1f7a0f1cf2eb3a45aca111fae037f8 (diff)
downloaduGFX-189bad3e6a4e6d38e34eee0abebd9986260e95ce.tar.gz
uGFX-189bad3e6a4e6d38e34eee0abebd9986260e95ce.tar.bz2
uGFX-189bad3e6a4e6d38e34eee0abebd9986260e95ce.zip
Multiple Displays demo - use sprintg instead of sprintf.
Make multiple display settings set-able in the makefile.
Diffstat (limited to 'demos/modules/gdisp/multiple_displays/main.c')
-rw-r--r--demos/modules/gdisp/multiple_displays/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/modules/gdisp/multiple_displays/main.c b/demos/modules/gdisp/multiple_displays/main.c
index c4c37bed..387ca690 100644
--- a/demos/modules/gdisp/multiple_displays/main.c
+++ b/demos/modules/gdisp/multiple_displays/main.c
@@ -70,7 +70,7 @@
/* Draw draw draw */
gdispGDrawBox(g, 10, 10, width/2, height/2, Yellow);
- sprintf(buf, "Display %u", display);
+ sprintg(buf, "Display %u", display);
gdispGFillStringBox(g, width/2, height/2, width/2-10, height/2-10, buf, f, White, Blue, justifyCenter);
gdispGDrawLine(g, 5, 30, width-50, height-40, Red);
@@ -108,7 +108,7 @@
/* Draw draw draw */
gdispDrawBox(10, 10, width/2, height/2, Yellow);
- sprintf(buf, "Display %u", display);
+ sprintg(buf, "Display %u", display);
gdispFillStringBox(width/2, height/2, width/2-10, height/2-10, buf, f, White, Blue, justifyCenter);
gdispDrawLine(5, 30, width-50, height-40, Red);