From 7682c8205d389c8a44da84b6f42dc986a8ac3773 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 6 Apr 2022 19:49:24 +0200 Subject: Removed OnPaint --- StarsEx/Game.h | 1 - StarsEx/WndProc.cpp | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'StarsEx') diff --git a/StarsEx/Game.h b/StarsEx/Game.h index 6f0c58c..2625e13 100644 --- a/StarsEx/Game.h +++ b/StarsEx/Game.h @@ -44,7 +44,6 @@ public: virtual bool Init(HINSTANCE hi, HINSTANCE hpi, LPSTR cmdline, int nCmdShow); virtual int Run(); virtual void Exit(); - virtual bool OnPaint() { return false; } virtual int GetGameMode() const { return game_mode; } virtual void SetGameMode(int mode) { game_mode = mode; } diff --git a/StarsEx/WndProc.cpp b/StarsEx/WndProc.cpp index 1f068b3..2d59350 100644 --- a/StarsEx/WndProc.cpp +++ b/StarsEx/WndProc.cpp @@ -37,9 +37,7 @@ WndProc(HWND hwnd, UINT message, WPARAM uParam, LPARAM lParam) break; case WM_PAINT: - if (!game || !game->OnPaint()) - return DefWindowProc(hwnd, message, uParam, lParam); - break; + return DefWindowProc(hwnd, message, uParam, lParam); case WM_SETCURSOR: if (game && game->ShowMouse()) { -- cgit v1.1