mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Engine: fix return value for game wndproc
Should return LRESULT, not int.
This commit is contained in:
parent
7dbf4133ee
commit
bfc985ea79
@ -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);
|
||||
|
@ -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; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user