Skip to content

Commit

Permalink
Added some FIXMEs.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 24, 2014
1 parent f0e0f4c commit 846a3e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/events/SDL_mouse.c
Expand Up @@ -246,6 +246,7 @@ SDL_PrivateSendMouseMotion(SDL_Window * window, SDL_MouseID mouseID, int relativ
mouse->y += yrel;
}

/* !!! FIXME: shouldn't this be (window) instead of (mouse->focus)? */
SDL_GetWindowSize(mouse->focus, &x_max, &y_max);
--x_max;
--y_max;
Expand Down
2 changes: 2 additions & 0 deletions src/video/SDL_video.c
Expand Up @@ -2216,6 +2216,8 @@ SDL_OnWindowFocusLost(SDL_Window * window)
}
}

/* !!! FIXME: is this different than SDL_GetKeyboardFocus()?
!!! FIXME: Also, SDL_GetKeyboardFocus() is O(1), this isn't. */
SDL_Window *
SDL_GetFocusWindow(void)
{
Expand Down

0 comments on commit 846a3e0

Please sign in to comment.