aboutsummaryrefslogtreecommitdiffstats
path: root/distrib/sdl-1.2.15/src/video/SDL_video.c
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2012-07-23 10:13:06 -0700
committerandroid code review <noreply-gerritcodereview@google.com>2012-07-23 10:13:06 -0700
commitd95f84da47d4e5c1f9bce2770400fd0d61b0c0b6 (patch)
treeb39ee901bb528b7e3593117cde724ef75d438b67 /distrib/sdl-1.2.15/src/video/SDL_video.c
parent2b3a42e7d0b441f71fc2e2b07269dd1f8151c977 (diff)
parente4c5d95ed37611acc6a186522315195b4ebfb9ef (diff)
downloadexternal_qemu-d95f84da47d4e5c1f9bce2770400fd0d61b0c0b6.zip
external_qemu-d95f84da47d4e5c1f9bce2770400fd0d61b0c0b6.tar.gz
external_qemu-d95f84da47d4e5c1f9bce2770400fd0d61b0c0b6.tar.bz2
Merge "Apply Android changes from sdl-1.2.12 to sdl-1.2.15"
Diffstat (limited to 'distrib/sdl-1.2.15/src/video/SDL_video.c')
-rw-r--r--distrib/sdl-1.2.15/src/video/SDL_video.c60
1 files changed, 60 insertions, 0 deletions
diff --git a/distrib/sdl-1.2.15/src/video/SDL_video.c b/distrib/sdl-1.2.15/src/video/SDL_video.c
index 46285c9..43c1826 100644
--- a/distrib/sdl-1.2.15/src/video/SDL_video.c
+++ b/distrib/sdl-1.2.15/src/video/SDL_video.c
@@ -1963,6 +1963,66 @@ int SDL_WM_ToggleFullScreen(SDL_Surface *surface)
}
/*
+ * Set window position
+ */
+void SDL_WM_SetPos(int x, int y)
+{
+ SDL_VideoDevice* video = current_video;
+
+ if (video && video->SetWindowPos)
+ video->SetWindowPos(video, x, y);
+}
+
+/*
+ * Get window position
+ */
+void SDL_WM_GetPos(int *px, int *py)
+{
+ SDL_VideoDevice* video = current_video;
+
+ if (video && video->GetWindowPos)
+ video->GetWindowPos(video, px, py);
+ else {
+ *px = 100;
+ *py = 100;
+ }
+}
+
+int SDL_WM_IsFullyVisible( int recenter )
+{
+ int result = 1;
+
+ SDL_VideoDevice* video = current_video;
+
+ if (video && video->IsWindowVisible) {
+ result = video->IsWindowVisible(video, recenter);
+ }
+ return result;
+}
+
+int SDL_WM_GetMonitorDPI( int *xDpi, int *yDpi )
+{
+ int result = -1;
+ SDL_VideoDevice* video = current_video;
+
+ if (video && video->GetMonitorDPI) {
+ result = video->GetMonitorDPI(video, xDpi, yDpi);
+ }
+ return result;
+}
+
+int SDL_WM_GetMonitorRect( SDL_Rect *rect )
+{
+ int result = -1;
+ SDL_VideoDevice* video = current_video;
+
+ if (video && video->GetMonitorRect) {
+ result = video->GetMonitorRect(video, rect);
+ }
+ return result;
+}
+
+/*
* Get some platform dependent window manager information
*/
int SDL_GetWMInfo (SDL_SysWMinfo *info)