From 9f9f2456d5ee0091bf171fae3ad321f82e5f2ca4 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 23 Mar 2022 21:59:48 +0100 Subject: Moved application state internals to GameWinDX9 --- Stars45/GameWinDX9.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Stars45/GameWinDX9.h') diff --git a/Stars45/GameWinDX9.h b/Stars45/GameWinDX9.h index bf5470d..9f31ce1 100644 --- a/Stars45/GameWinDX9.h +++ b/Stars45/GameWinDX9.h @@ -10,6 +10,7 @@ #include "Color.h" #include "Game.h" #include "Types.h" +#include "WndProc.h" class GameWinDX9 : public Game @@ -45,12 +46,23 @@ public: protected: + friend LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM uParam, LPARAM lParam); + PALETTEENTRY standard_palette[256]; BYTE inverse_palette[32768]; int max_tex_size; Color screen_color; + bool is_windowed; + bool is_active; + bool is_device_lost; + bool is_minimized; + bool is_maximized; + bool ignore_size_change; + bool is_device_initialized; + bool is_device_restored; + private: static GameWinDX9* instance; }; -- cgit v1.1