File diff r8924:b5c89d2d57c4 → r8925:2b882cd5b1b6
src/window_gui.h
Show inline comments
 
@@ -7,12 +7,13 @@
 

	
 
#include "core/bitmath_func.hpp"
 
#include "vehicle_type.h"
 
#include "viewport_type.h"
 
#include "player_type.h"
 
#include "strings_type.h"
 
#include "core/alloc_type.hpp"
 

	
 
/**
 
 * The maximum number of windows that can be opened.
 
 */
 
static const int MAX_NUMBER_OF_WINDOWS = 25;
 

	
 
@@ -286,13 +287,13 @@ struct WindowMessage {
 
	int lparam;
 
};
 

	
 
/**
 
 * Data structure for an opened window
 
 */
 
struct Window {
 
struct Window : ZeroedMemoryAllocator {
 
	uint16 flags4;              ///< Window flags, @see WindowFlags
 
	WindowClass window_class;   ///< Window class
 
	WindowNumber window_number; ///< Window number within the window class
 

	
 
	int left;   ///< x position of left edge of the window
 
	int top;    ///< y position of top edge of the window