aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-01-03 19:14:41 +0100
committerJoel Bodenmann <joel@unormal.org>2014-01-03 19:14:41 +0100
commitffed62c5ba3c208e83af5cc6615cfd1615a97d02 (patch)
tree6f15571875bd0922e6bd18e8c8d5d2d0d78336e6 /src
parentae6c2965ad35c512ae2404fe9079213034e6f7a6 (diff)
downloaduGFX-ffed62c5ba3c208e83af5cc6615cfd1615a97d02.tar.gz
uGFX-ffed62c5ba3c208e83af5cc6615cfd1615a97d02.tar.bz2
uGFX-ffed62c5ba3c208e83af5cc6615cfd1615a97d02.zip
GWIN_CONSOLE_NEED_HISTORY -> GWIN_CONSOLE_USE_HISTORY
Diffstat (limited to 'src')
-rw-r--r--src/gwin/console.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gwin/console.c b/src/gwin/console.c
index e06ca937..56e1abc6 100644
--- a/src/gwin/console.c
+++ b/src/gwin/console.c
@@ -22,7 +22,7 @@
#define GWIN_CONSOLE_USE_FILLED_CHARS FALSE
// some temporary warning
-#if GWIN_CONSOLE_NEED_HISTORY
+#if GWIN_CONSOLE_USE_HISTORY
#warning "This feature is work in progress and does currently contain a lot of bugs."
#endif
@@ -58,7 +58,7 @@
};
#endif
-#if GWIN_CONSOLE_NEED_HISTORY
+#if GWIN_CONSOLE_USE_HISTORY
static void CustomRedraw(GWindowObject *gh) {
#define gcw ((GConsoleObject *)gh)
@@ -80,7 +80,7 @@ static void AfterClear(GWindowObject *gh) {
gcw->cx = 0;
gcw->cy = 0;
- #if GWIN_CONSOLE_NEED_HISTORY
+ #if GWIN_CONSOLE_USE_HISTORY
// issue an overflow, this is some kind
// of emptying the buffer
gcw->last_char = gcw->size;
@@ -93,7 +93,7 @@ static const gwinVMT consoleVMT = {
"Console", // The classname
sizeof(GConsoleObject), // The object size
0, // The destroy routine
- #if GWIN_CONSOLE_NEED_HISTORY
+ #if GWIN_CONSOLE_USE_HISTORY
CustomRedraw, // The redraw routine (custom)
#else
0, // The redraw routine (default)
@@ -109,7 +109,7 @@ GHandle gwinGConsoleCreate(GDisplay *g, GConsoleObject *gc, const GWindowInit *p
gc->stream.vmt = &GWindowConsoleVMT;
#endif
- #if GWIN_CONSOLE_NEED_HISTORY
+ #if GWIN_CONSOLE_USE_HISTORY
gc->buffer = 0;
gc->size = 0;
gc->last_char = 0;
@@ -132,7 +132,7 @@ GHandle gwinGConsoleCreate(GDisplay *g, GConsoleObject *gc, const GWindowInit *p
}
#endif
-#if GWIN_CONSOLE_NEED_HISTORY
+#if GWIN_CONSOLE_USE_HISTORY
bool_t gwinConsoleSetBuffer(GHandle gh, void* buffer, size_t size) {
#define gcw ((GConsoleObject *)gh)
@@ -179,7 +179,7 @@ void gwinPutChar(GHandle gh, char c) {
if (gh->vmt != &consoleVMT || !gh->font)
return;
- #if GWIN_CONSOLE_NEED_HISTORY
+ #if GWIN_CONSOLE_USE_HISTORY
// buffer overflow check
if (gcw->last_char >= gcw->size)
gcw->last_char = 0;