From 014330d3a08104313feee8ce3dfed02fb79bf2d3 Mon Sep 17 00:00:00 2001 From: Andrew Hannam Date: Mon, 12 Nov 2012 17:00:26 +1000 Subject: 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. --- src/gwin.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 +#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; -- cgit v1.2.3