diff libvo/vo_xv.c @ 22232:d0b60d14d8d7

Move common vo initialization code to video_out.c
author reimar
date Sat, 17 Feb 2007 20:58:55 +0000
parents bca522054afe
children c54ad95f852a
line wrap: on
line diff
--- a/libvo/vo_xv.c	Sat Feb 17 17:24:07 2007 +0000
+++ b/libvo/vo_xv.c	Sat Feb 17 20:58:55 2007 +0000
@@ -168,11 +168,6 @@
     static uint32_t vm_height;
 #endif
 
-    panscan_init();
-
-    aspect_save_orig(width, height);
-    aspect_save_prescale(d_width, d_height);
-
     image_height = height;
     image_width = width;
     image_format = format;
@@ -190,17 +185,6 @@
     int_pause = 0;
     visible_buf = -1;
 
-    update_xinerama_info();
-    aspect(&d_width, &d_height, A_NOZOOM);
-    vo_dx = (vo_screenwidth - d_width) / 2;
-    vo_dy = (vo_screenheight - d_height) / 2;
-    geometry(&vo_dx, &vo_dy, &d_width, &d_height, vo_screenwidth,
-             vo_screenheight);
-    vo_dx += xinerama_x;
-    vo_dy += xinerama_y;
-    vo_dwidth = d_width;
-    vo_dheight = d_height;
-
 #ifdef HAVE_XF86VM
     if (flags & VOFLAG_MODESWITCHING)
         vm = 1;
@@ -1004,6 +988,9 @@
         case VOCTRL_ONTOP:
             vo_x11_ontop();
             return VO_TRUE;
+        case VOCTRL_UPDATE_SCREENINFO:
+            update_xinerama_info();
+            return VO_TRUE;
     }
     return VO_NOTIMPL;
 }