Răsfoiți Sursa

Added code missed in the resolve

Sam Lantinga 12 ani în urmă
părinte
comite
7afb76824e
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      src/video/windows/SDL_windowsevents.c

+ 2 - 0
src/video/windows/SDL_windowsevents.c

@@ -418,6 +418,8 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
                 if (SDL_GetKeyboardFocus() == data->window) {
                     SDL_SetKeyboardFocus(NULL);
                 }
+
+                ClipCursor(NULL);
             }
         }
         returnCode = 0;