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
commit2cf7d5b2cb661ab905bbd8e37f2c10be1d00908f (patch)
tree01d7c4429e1c30bf65208609d37c644b6618ab26 /src/window_type.h
parent8bfbfd0031bd155440432759cd6b2af0df1bccbd (diff)
downloadopenttd-2cf7d5b2cb661ab905bbd8e37f2c10be1d00908f.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 */