aboutsummaryrefslogtreecommitdiffstats
path: root/include/gwin
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 /include/gwin
parentae6c2965ad35c512ae2404fe9079213034e6f7a6 (diff)
downloaduGFX-ffed62c5ba3c208e83af5cc6615cfd1615a97d02.tar.gz
uGFX-ffed62c5ba3c208e83af5cc6615cfd1615a97d02.tar.bz2
uGFX-ffed62c5ba3c208e83af5cc6615cfd1615a97d02.zip
GWIN_CONSOLE_NEED_HISTORY -> GWIN_CONSOLE_USE_HISTORY
Diffstat (limited to 'include/gwin')
-rw-r--r--include/gwin/console.h6
-rw-r--r--include/gwin/options.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/include/gwin/console.h b/include/gwin/console.h
index 850c5a57..ec108984 100644
--- a/include/gwin/console.h
+++ b/include/gwin/console.h
@@ -31,7 +31,7 @@ typedef struct GConsoleObject {
GWindowObject g;
coord_t cx, cy; // Cursor position
- #if GWIN_CONSOLE_NEED_HISTORY
+ #if GWIN_CONSOLE_USE_HISTORY
char* buffer; // buffer to store console content
uint16_t last_char; // the last rendered character
size_t size; // size of buffer
@@ -89,10 +89,10 @@ GHandle gwinGConsoleCreate(GDisplay *g, GConsoleObject *gc, const GWindowInit *p
BaseSequentialStream *gwinConsoleGetStream(GHandle gh);
#endif
-#if GWIN_CONSOLE_NEED_HISTORY
+#if GWIN_CONSOLE_USE_HISTORY
/**
* @brief Assing a buffer to keep track of the content while the widget is invisible.
- * @pre GWIN_CONSOLE_NEED_HISTORY must be set to TRUE in your gfxconf.h
+ * @pre GWIN_CONSOLE_USE_HISTORY must be set to TRUE in your gfxconf.h
*
* @param[in] gh The window handle (must be a console window)
* @param[in] buffer The pointer of the buffer that shall be used. Buffer will be
diff --git a/include/gwin/options.h b/include/gwin/options.h
index 260160ca..e6d2a81e 100644
--- a/include/gwin/options.h
+++ b/include/gwin/options.h
@@ -113,8 +113,8 @@
* content will be restored too.
* @details Defaults to FALSE
*/
- #ifndef GWIN_CONSOLE_NEED_HISTORY
- #define GWIN_CONSOLE_NEED_HISTORY FALSE
+ #ifndef GWIN_CONSOLE_USE_HISTORY
+ #define GWIN_CONSOLE_USE_HISTORY FALSE
#endif
/**
* @brief Console Windows need floating point support in @p gwinPrintf