# HG changeset patch # User rubidium # Date 1210980571 0 # Node ID c3104c1fcd71db7dd991c0d2bd9c40be25dbb5f8 # Parent 15d97b3d442d3faf46c395ad4852c6fa5e290fbd (svn r13129) -Codechange: remove the WP macro and it's related variables. diff -r 15d97b3d442d -r c3104c1fcd71 src/window_gui.h --- a/src/window_gui.h Fri May 16 23:23:38 2008 +0000 +++ b/src/window_gui.h Fri May 16 23:29:31 2008 +0000 @@ -245,8 +245,6 @@ WDP_ALIGN_TBL = -4, ///< Align the left side of the window with the left side of the main toolbar }; -#define WP(ptr, str) (*(str*)(ptr)->custom) - /** * Scrollbar data structure */ @@ -320,7 +318,6 @@ uint32 desc_flags; ///< Window/widgets default flags setting, @see WindowDefaultFlag Window *parent; ///< Parent window - byte custom[WINDOW_CUSTOM_SIZE]; ///< Additional data depending on window type void HandleButtonClick(byte widget); diff -r 15d97b3d442d -r c3104c1fcd71 src/window_type.h --- a/src/window_type.h Fri May 16 23:23:38 2008 +0000 +++ b/src/window_type.h Fri May 16 23:29:31 2008 +0000 @@ -102,11 +102,4 @@ 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. - * 32 is the largest window-size for 64-bit machines currently. - */ -#define WINDOW_CUSTOM_SIZE 32 - #endif /* WINDOW_TYPE_H */