summaryrefslogtreecommitdiff
path: root/src/window_gui.h
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
commit1599ade7caf73fbb49409644357062ef95fc04ad (patch)
tree7f6e9a1062fc5034eb21ca5b1895d24cae43f965 /src/window_gui.h
parentbfe9743f2025adefdf4926a370e5dee6b28ac0b8 (diff)
downloadopenttd-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/window_gui.h')
-rw-r--r--src/window_gui.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 0a3755380..0fbd4c1a5 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -544,18 +544,9 @@ extern Window **_last_z_window;
#define FOR_ALL_WINDOWS(wz) for (wz = _z_windows; wz != _last_z_window; wz++)
/**
- * In certain windows you navigate with the arrow keys. Do not scroll the
- * gameview when here. Bitencoded variable that only allows scrolling if all
- * elements are zero
+ * Disable scrolling of the main viewport when an input-window is active.
+ * This contains the count of windows with a textbox in them.
*/
-enum {
- SCROLL_CON = 0,
- SCROLL_EDIT = 1,
- SCROLL_SAVE = 2,
- SCROLL_CHAT = 4,
-};
-
-/** Disable scrolling of the main viewport when an input-window is active. */
extern byte _no_scroll;
extern Point _cursorpos_drag_start;