There's no reason to add extra code to notify the mice of window size changes.

Just query the window size when we care about it. :)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403310
This commit is contained in:
Sam Lantinga 2008-12-07 21:53:28 +00:00
parent 546fea4e11
commit 3eec2c4dd4
4 changed files with 24 additions and 32 deletions

View file

@ -66,8 +66,8 @@ struct SDL_Mouse
/* Data common to all mice */
SDL_WindowID focus;
int which;
int x, x_max;
int y, y_max;
int x;
int y;
int z; /* for future use */
int xdelta;
int ydelta;
@ -112,9 +112,6 @@ extern void SDL_ResetMouse(int index);
/* Set the mouse focus window */
extern void SDL_SetMouseFocus(int id, SDL_WindowID windowID);
/* Set the size of the mouse focus window */
extern void SDL_SetMouseFocusSize(SDL_WindowID windowID, int w, int h);
/* Send a mouse motion event for a mouse */
extern int SDL_SendMouseMotion(int id, int relative, int x, int y, int z);