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/misc_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/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 57ead63b2..ac1f24d16 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1068,7 +1068,6 @@ struct QueryStringWindow : public QueryStringBaseWindow QueryStringWindow(uint16 size, const WindowDesc *desc, Window *parent) : QueryStringBaseWindow(size, desc) { this->parent = parent; - SetBit(_no_scroll, SCROLL_EDIT); this->FindWindowPlacementAndResize(desc); } @@ -1142,7 +1141,6 @@ struct QueryStringWindow : public QueryStringBaseWindow this->parent = NULL; // so parent doesn't try to delete us again parent->OnQueryTextFinished(NULL); } - ClrBit(_no_scroll, SCROLL_EDIT); } }; @@ -1443,7 +1441,6 @@ struct SaveLoadWindow : public QueryStringBaseWindow { }; SetObjectToPlace(SPR_CURSOR_ZZZ, PAL_NONE, VHM_NONE, WC_MAIN_WINDOW, 0); - SetBit(_no_scroll, SCROLL_SAVE); /* Use an array to define what will be the current file type being handled * by current file mode */ @@ -1505,7 +1502,6 @@ struct SaveLoadWindow : public QueryStringBaseWindow { if (_pause_game >= 0) DoCommandP(0, 0, 0, NULL, CMD_PAUSE); } FiosFreeSavegameList(); - ClrBit(_no_scroll, SCROLL_SAVE); } virtual void OnPaint() |