specific: fix WndProc definition

This commit is contained in:
rr- 2021-10-17 18:47:56 +02:00
parent 981b91e81d
commit 65e336cdcf
No known key found for this signature in database
GPG key ID: CC65E6FD28CAE42A

View file

@ -30,7 +30,7 @@ static const char *WindowName = "Tomb Raider";
// clang-format on // clang-format on
static void WinGameFinish(); static void WinGameFinish();
static LRESULT WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
static int InitDirectDraw(); static int InitDirectDraw();
void TerminateGame(int exit_code) void TerminateGame(int exit_code)
@ -99,7 +99,7 @@ static int InitDirectDraw()
return 1; return 1;
} }
static LRESULT WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
if (uMsg == CloseMsg) { if (uMsg == CloseMsg) {
DestroyWindow(TombHWND); DestroyWindow(TombHWND);