summaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-01-26 16:19:24 +0000
committerDarkvater <darkvater@openttd.org>2006-01-26 16:19:24 +0000
commit2612d485506311f7bc9858af2bd8702939058f84 (patch)
tree121941aa494a22ee9c09b0ba52e6c0d61f8a8fba /window.h
parentbc450bbc9a48e5d6b776eee0f02b76d533e5279a (diff)
downloadopenttd-2612d485506311f7bc9858af2bd8702939058f84.tar.xz
(svn r3439) - CodeChange: Remove a whole bunch of global variables and put them into the WP() macro. Also combine more than one WP-custom element. For this the maximum size of w->custom (WP) has been increased, and multiple types put inside one with possibly moved to the corresponding gui file if it is only used there.
Diffstat (limited to 'window.h')
-rw-r--r--window.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.h b/window.h
index 87e4a36ac..7f09f2f25 100644
--- a/window.h
+++ b/window.h
@@ -258,7 +258,7 @@ typedef struct querystr_d {
// than on a 32-bit system. Therefore, the size is calculated from querystr_d
// instead of a hardcoded number.
// if any struct becomes bigger the querystr_d, it should be replaced.
-#define WINDOW_CUSTOM_SIZE sizeof(querystr_d)
+#define WINDOW_CUSTOM_SIZE sizeof(querystr_d) * 2
typedef struct Scrollbar {
uint16 count, cap, pos;