Navigation Menu

Skip to content

Commit

Permalink
Flip this around to do the simpler condition first.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 24, 2014
1 parent 668025c commit ded970f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -745,8 +745,8 @@ - (void)mouseMoved:(NSEvent *)theEvent
x = (int)point.x;
y = (int)(window->h - point.y);

if (x < 0 || x >= window->w || y < 0 || y >= window->h) {
if (window->flags & SDL_WINDOW_INPUT_GRABBED) {
if (window->flags & SDL_WINDOW_INPUT_GRABBED) {
if (x < 0 || x >= window->w || y < 0 || y >= window->h) {
if (x < 0) {
x = 0;
} else if (x >= window->w) {
Expand Down

0 comments on commit ded970f

Please sign in to comment.