summaryrefslogtreecommitdiff
path: root/src/signs_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-12-16 17:58:27 +0000
committerrubidium <rubidium@openttd.org>2008-12-16 17:58:27 +0000
commit94a5f66427ec48fae8d939254916c48fcdf5b1ce (patch)
tree7f6e9a1062fc5034eb21ca5b1895d24cae43f965 /src/signs_gui.cpp
parentf1c7e4662a379fdc1f59e69c0823b7daae5a4958 (diff)
downloadopenttd-94a5f66427ec48fae8d939254916c48fcdf5b1ce.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/signs_gui.cpp')
-rw-r--r--src/signs_gui.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp
index e57c4bfaf..07ab6904b 100644
--- a/src/signs_gui.cpp
+++ b/src/signs_gui.cpp
@@ -199,7 +199,6 @@ struct SignWindow : QueryStringBaseWindow, SignList {
SignWindow(const WindowDesc *desc, const Sign *si) : QueryStringBaseWindow(MAX_LENGTH_SIGN_NAME_BYTES, desc)
{
- SetBit(_no_scroll, SCROLL_EDIT);
this->caption = STR_280B_EDIT_SIGN_TEXT;
this->afilter = CS_ALPHANUMERAL;
this->LowerWidget(QUERY_EDIT_SIGN_WIDGET_TEXT);
@@ -208,11 +207,6 @@ struct SignWindow : QueryStringBaseWindow, SignList {
this->FindWindowPlacementAndResize(desc);
}
- ~SignWindow()
- {
- ClrBit(_no_scroll, SCROLL_EDIT);
- }
-
void UpdateSignEditWindow(const Sign *si)
{
char *last_of = &this->edit_str_buf[this->edit_str_size - 1]; // points to terminating '\0'