diff libvo/sdl_common.c @ 34812:f2274219a79c

Fix -fs with SDL-based vo gl.
author reimar
date Mon, 14 May 2012 20:24:43 +0000
parents 0bce77ccae9a
children ec5d1147164e
line wrap: on
line diff
--- a/libvo/sdl_common.c	Mon May 14 19:52:52 2012 +0000
+++ b/libvo/sdl_common.c	Mon May 14 20:24:43 2012 +0000
@@ -93,6 +93,19 @@
         SDL_QuitSubSystem(SDL_INIT_VIDEO);
 }
 
+int vo_sdl_config(int w, int h, int flags, const char *title)
+{
+    SDL_WM_SetCaption(title, NULL);
+    vo_dwidth  = old_w = w;
+    vo_dheight = old_h = h;
+    vo_fs = !!(flags & VOFLAG_FULLSCREEN);
+    if (vo_fs) {
+        vo_dwidth  = vo_screenwidth;
+        vo_dheight = vo_screenheight;
+    }
+    return 1;
+}
+
 void vo_sdl_fullscreen(void)
 {
     if (vo_fs) {