Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fullscreen doesn't automatically grab the cursor.

  • Loading branch information
slouken committed Mar 1, 2011
1 parent 2e6fd92 commit 818f0e8a434370bdc781786bb0640fb572b8840d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/video/windows/SDL_windowswindow.c
@@ -582,8 +582,8 @@ WIN_SetWindowGrab(_THIS, SDL_Window * window)
{
HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;

if ((window->flags & (SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN))
&& (window->flags & SDL_WINDOW_INPUT_FOCUS)) {
if ((window->flags & SDL_WINDOW_INPUT_GRABBED) &&
(window->flags & SDL_WINDOW_INPUT_FOCUS)) {
RECT rect;
GetClientRect(hwnd, &rect);
ClientToScreen(hwnd, (LPPOINT) & rect);

0 comments on commit 818f0e8

Please sign in to comment.