diff options
author | rubidium <rubidium@openttd.org> | 2008-12-16 17:58:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-12-16 17:58:27 +0000 |
commit | 1599ade7caf73fbb49409644357062ef95fc04ad (patch) | |
tree | 7f6e9a1062fc5034eb21ca5b1895d24cae43f965 /src/console_gui.cpp | |
parent | bfe9743f2025adefdf4926a370e5dee6b28ac0b8 (diff) | |
download | openttd-1599ade7caf73fbb49409644357062ef95fc04ad.tar.xz |
(svn r14679) -Fix [FS#2431]: opening the OSK on the chatbox did disable map scrolling (with keyboard) until another window with editbox was opened and closed. Just "refcount" the open edit boxes instead of setting/clearing a bit when opening/closing a window.
Diffstat (limited to 'src/console_gui.cpp')
-rw-r--r-- | src/console_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console_gui.cpp b/src/console_gui.cpp index baa537322..d06833820 100644 --- a/src/console_gui.cpp +++ b/src/console_gui.cpp @@ -153,7 +153,7 @@ struct IConsoleWindow : Window IConsoleWindow(const WindowDesc *desc) : Window(desc) { _iconsole_mode = ICONSOLE_OPENED; - SetBit(_no_scroll, SCROLL_CON); // override cursor arrows; the gamefield will not scroll + _no_scroll++; // override cursor arrows; the gamefield will not scroll this->height = _screen.height / 3; this->width = _screen.width; @@ -162,7 +162,7 @@ struct IConsoleWindow : Window ~IConsoleWindow() { _iconsole_mode = ICONSOLE_CLOSED; - ClrBit(_no_scroll, SCROLL_CON); + _no_scroll--; } virtual void OnPaint() |