From e4c5d95ed37611acc6a186522315195b4ebfb9ef Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Mon, 9 Jul 2012 11:42:54 -0700 Subject: Apply Android changes from sdl-1.2.12 to sdl-1.2.15 These changes come from diffing Android's sdl-1.2.12 tree against a pure upstream sdl-1.2.12 tree, and then manually applying those differences to the sdl-1.2.15 tree. Change-Id: I05fa6e8004bb629fa2482f092b6ab127b7e51e73 --- distrib/sdl-1.2.15/include/SDL_video.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'distrib/sdl-1.2.15/include/SDL_video.h') diff --git a/distrib/sdl-1.2.15/include/SDL_video.h b/distrib/sdl-1.2.15/include/SDL_video.h index f9c4e07..9a2df0c 100644 --- a/distrib/sdl-1.2.15/include/SDL_video.h +++ b/distrib/sdl-1.2.15/include/SDL_video.h @@ -936,6 +936,36 @@ typedef enum { */ extern DECLSPEC SDL_GrabMode SDLCALL SDL_WM_GrabInput(SDL_GrabMode mode); +/* + * Move the SDL Window to a specific position. Does nothing in fullscreen mode. + */ +extern DECLSPEC void SDL_WM_SetPos(int x, int y); + +/* + * Get the current SDL window position. Returns (0,0) in fullscreen mode. + */ +extern DECLSPEC void SDL_WM_GetPos(int *px, int *py); + +/* + * If the window is fully visible, return TRUE; otherwise, recenter the window + * if the 'recenter' parameter is non-0, and return FALSE. + */ +extern DECLSPEC int SDL_WM_IsFullyVisible(int recenter); + +/* + * Get the resolution of the main monitor in DPIs, if available. + * Return 0 on success, or -1 if the data is not available. + */ +extern DECLSPEC int SDL_WM_GetMonitorDPI(int *xDPI, int *yDPI); + +/* + * Get the coordinates of the monitor in virtual desktop space. + * In the case of multi-monitor systems, returns the rectangle of + * the 'nearest' monitor relative to the main SDL_window. Returns + * 0 on success, or -1 if the data is not available. + */ +extern DECLSPEC int SDL_WM_GetMonitorRect(SDL_Rect *rect); + /*@}*/ /** @internal Not in public API at the moment - do not use! */ -- cgit v1.1