aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Hannam <andrewh@inmarket.com.au>2012-11-12 17:00:26 +1000
committerAndrew Hannam <andrewh@inmarket.com.au>2012-11-12 17:00:26 +1000
commit014330d3a08104313feee8ce3dfed02fb79bf2d3 (patch)
tree081e6f6b052b46f4bb680097ebd04e857df6c2a7 /src
parent27f1350081ecbcf00618a88c5590be27df275b95 (diff)
downloaduGFX-014330d3a08104313feee8ce3dfed02fb79bf2d3.tar.gz
uGFX-014330d3a08104313feee8ce3dfed02fb79bf2d3.tar.bz2
uGFX-014330d3a08104313feee8ce3dfed02fb79bf2d3.zip
gdisp Win32 Orientation support. Revert Macro
gdisp Win32 orientation support. Revert to producing an error if GDISP_NEED_TEXT is not defined when GWIN_NEED_CONSOLE or GWIN_NEED_BUTTON is defined.
Diffstat (limited to 'src')
-rw-r--r--src/gwin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gwin.c b/src/gwin.c
index dfc4b1e0..0b3078b4 100644
--- a/src/gwin.c
+++ b/src/gwin.c
@@ -36,6 +36,8 @@
#include <string.h>
+#define GWIN_USE_FILLED_CHARS FALSE
+
#define GWIN_FLG_DYNAMIC 0x0001
#define GWIN_FIRST_CONTROL_FLAG 0x0002
#define GBTN_FLG_ALLOCTXT (GWIN_FIRST_CONTROL_FLAG<<0)
@@ -666,7 +668,11 @@ void gwinPutChar(GHandle gh, char c) {
#endif
}
+#if GWIN_USE_FILLED_CHARS
+ gdispFillChar(gh->x + gcw->cx, gh->y + gcw->cy, c, gh->font, gh->color, gh->bgcolor);
+#else
gdispDrawChar(gh->x + gcw->cx, gh->y + gcw->cy, c, gh->font, gh->color);
+#endif
/* update cursor */
gcw->cx += width;