summaryrefslogtreecommitdiffhomepage
path: root/StarsEx
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-06 19:49:24 +0200
committerAki <please@ignore.pl>2022-04-06 19:49:24 +0200
commit7682c8205d389c8a44da84b6f42dc986a8ac3773 (patch)
tree8fcf82655a1a753413320bc4f51466376a3318ae /StarsEx
parent7552ac635c39baae28de9b7c75cdc23d3547168e (diff)
downloadstarshatter-7682c8205d389c8a44da84b6f42dc986a8ac3773.zip
starshatter-7682c8205d389c8a44da84b6f42dc986a8ac3773.tar.gz
starshatter-7682c8205d389c8a44da84b6f42dc986a8ac3773.tar.bz2
Removed OnPaint
Diffstat (limited to 'StarsEx')
-rw-r--r--StarsEx/Game.h1
-rw-r--r--StarsEx/WndProc.cpp4
2 files changed, 1 insertions, 4 deletions
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()) {