Engine: fix return value for game wndproc

Should return LRESULT, not int.
This commit is contained in:
Kawe Mazidjatari 2024-03-03 14:44:25 +01:00
parent 7dbf4133ee
commit bfc985ea79
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ void CGame::PlayStartupVideos(void)
//-----------------------------------------------------------------------------
// Purpose: main windows procedure
//-----------------------------------------------------------------------------
int CGame::WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
LRESULT CGame::WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
if (!ImguiSystem()->IsInitialized())
return CGame__WindowProc(hWnd, uMsg, wParam, lParam);

View File

@ -9,7 +9,7 @@
inline void (*CGame__AttachToWindow)(void);
inline void(*CGame__PlayStartupVideos)(void);
inline int(*CGame__WindowProc)(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
inline LRESULT (*CGame__WindowProc)(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
//-----------------------------------------------------------------------------
// Purpose: Main game interface, including message pump and window creation
//-----------------------------------------------------------------------------
@ -17,7 +17,7 @@ class CGame
{
public:
static void PlayStartupVideos(void);
static int WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
static LRESULT WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
inline HWND GetWindow() const { return m_hWindow; }