From 8f353abd0bfe18baddd8a8250ab7c4f2d1c83a6e Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 31 Mar 2022 23:41:46 +0200 Subject: Moved HINST and HWND from Game to GameWinDX9 --- Stars45/GameWinDX9.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Stars45/GameWinDX9.h') diff --git a/Stars45/GameWinDX9.h b/Stars45/GameWinDX9.h index 9f31ce1..43fc71d 100644 --- a/Stars45/GameWinDX9.h +++ b/Stars45/GameWinDX9.h @@ -35,12 +35,17 @@ public: virtual bool SetupPalette(); virtual bool LoadPalette(PALETTEENTRY* pal, BYTE* inv); + virtual int Run() override; + int MaxTexSize() const; int MaxTexAspect() const; Color GetScreenColor() const; int GetScreenWidth() const; int GetScreenHeight() const; + HINSTANCE GetHINST(); + HWND GetHWND(); + void SetMaxTexSize(int n); void SetScreenColor(Color c); @@ -54,6 +59,9 @@ protected: int max_tex_size; Color screen_color; + HINSTANCE hInst; + HWND hwnd; + bool is_windowed; bool is_active; bool is_device_lost; -- cgit v1.1