|
@@ -2471,6 +2471,11 @@ LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+LRESULT CALLBACK WIN_DefWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|
|
|
|
+{
|
|
|
|
|
+ return CallWindowProc(DefWindowProc, hwnd, msg, wParam, lParam);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
int WIN_WaitEventTimeout(SDL_VideoDevice *_this, Sint64 timeoutNS)
|
|
int WIN_WaitEventTimeout(SDL_VideoDevice *_this, Sint64 timeoutNS)
|
|
|
{
|
|
{
|
|
|
if (g_WindowsEnableMessageLoop) {
|
|
if (g_WindowsEnableMessageLoop) {
|
|
@@ -2754,7 +2759,7 @@ bool SDL_RegisterApp(const char *name, Uint32 style, void *hInst)
|
|
|
wcex.cbSize = sizeof(WNDCLASSEX);
|
|
wcex.cbSize = sizeof(WNDCLASSEX);
|
|
|
wcex.lpszClassName = SDL_Appname;
|
|
wcex.lpszClassName = SDL_Appname;
|
|
|
wcex.style = SDL_Appstyle;
|
|
wcex.style = SDL_Appstyle;
|
|
|
- wcex.lpfnWndProc = DefWindowProc;
|
|
|
|
|
|
|
+ wcex.lpfnWndProc = WIN_DefWindowProc;
|
|
|
wcex.hInstance = SDL_Instance;
|
|
wcex.hInstance = SDL_Instance;
|
|
|
|
|
|
|
|
#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|
|
#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|