summaryrefslogtreecommitdiff
path: root/src/console_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-09-13 19:15:59 +0000
committerfrosch <frosch@openttd.org>2009-09-13 19:15:59 +0000
commitebd916be3def20902cf19ffd16555074728eb9c3 (patch)
treec7748d7612a61b9558ffd10ffb176e34584f2376 /src/console_gui.cpp
parent5de9cc46b50b8e677395543c10b26b59c860212b (diff)
downloadopenttd-ebd916be3def20902cf19ffd16555074728eb9c3.tar.xz
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
Diffstat (limited to 'src/console_gui.cpp')
-rw-r--r--src/console_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console_gui.cpp b/src/console_gui.cpp
index 7cde4e807..48f0f4905 100644
--- a/src/console_gui.cpp
+++ b/src/console_gui.cpp
@@ -141,7 +141,7 @@ static void IConsoleClearCommand()
_iconsole_cmdline.width = 0;
_iconsole_cmdline.caretpos = 0;
_iconsole_cmdline.caretxoffs = 0;
- InvalidateWindow(WC_CONSOLE, 0);
+ SetWindowDirty(WC_CONSOLE, 0);
}
static inline void IConsoleResetHistoryPos() {_iconsole_historypos = ICON_HISTORY_SIZE - 1;}
@@ -470,5 +470,5 @@ static void IConsoleHistoryNavigate(int direction)
void IConsoleGUIPrint(ConsoleColour colour_code, char *str)
{
new IConsoleLine(str, (TextColour)colour_code);
- InvalidateWindow(WC_CONSOLE, 0);
+ SetWindowDirty(WC_CONSOLE, 0);
}