Skip to content

Commit

Permalink
Fixed bug 4841 - Misplaced parenthesis WIN_WindowProc / WM_ACTIVATE /…
Browse files Browse the repository at this point in the history
… ClipCursor

(Thanks!)
  • Loading branch information
1bsyl committed Oct 23, 2019
1 parent b7ab3b3 commit 758badf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/windows/SDL_windowsevents.c
Expand Up @@ -507,7 +507,7 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
WIN_ResetDeadKeys();
}

if (GetClipCursor(&rect) && SDL_memcmp(&rect, &data->cursor_clipped_rect, sizeof(rect) == 0)) {
if (GetClipCursor(&rect) && SDL_memcmp(&rect, &data->cursor_clipped_rect, sizeof(rect)) == 0) {
ClipCursor(NULL);
SDL_zero(data->cursor_clipped_rect);
}
Expand Down

0 comments on commit 758badf

Please sign in to comment.