summaryrefslogtreecommitdiff
path: root/src/window_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-19 20:45:46 +0000
committerrubidium <rubidium@openttd.org>2007-12-19 20:45:46 +0000
commitd582aea639e5d3ee592ec37f90b03bebbc3163f1 (patch)
tree01d7c4429e1c30bf65208609d37c644b6618ab26 /src/window_type.h
parent8896bea3064b6106b175585bd3098238c21a78a1 (diff)
downloadopenttd-d582aea639e5d3ee592ec37f90b03bebbc3163f1.tar.xz
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
Diffstat (limited to 'src/window_type.h')
-rw-r--r--src/window_type.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/window_type.h b/src/window_type.h
index bc8ee42b7..9ff8997d5 100644
--- a/src/window_type.h
+++ b/src/window_type.h
@@ -93,6 +93,14 @@ enum WindowClass {
};
struct Window;
+struct WindowEvent;
typedef int32 WindowNumber;
+/**
+ * You cannot 100% reliably calculate the biggest custom struct as
+ * the number of pointers in it and alignment will have a huge impact.
+ * 96 is the largest window-size for 64-bit machines currently.
+ */
+#define WINDOW_CUSTOM_SIZE 96
+
#endif /* WINDOW_TYPE_H */