[MPlayer-dev-eng] [PATCH] Xinerama full screen bug fix

Georgi Chorbadzhiyski gf at unixsol.org
Thu Jul 24 13:55:04 CEST 2008


Around 07/24/08 14:48, Georgi Chorbadzhiyski scribbled:
> Around 07/23/08 01:52, Georgi Chorbadzhiyski scribbled:
>> The following patch fixes a problem with full screen geometry when
>> mplayer is started with the X11 -xineramascreen option.

...cut...

Smaller patch.

--- libvo/x11_common.c  (revision 27341)
+++ libvo/x11_common.c  (working copy)
@@ -1539,7 +1539,10 @@
             vo_old_width = vo_dwidth;
             vo_old_height = vo_dheight;
         }
+            int tmp_xinerama_screen = xinerama_screen;
+            xinerama_screen = -1; // Set to -1 so update_xinerama_info() auto detects current screen
             update_xinerama_info();
+            xinerama_screen = tmp_xinerama_screen;
             x = xinerama_x;
             y = xinerama_y;
             w = vo_screenwidth;


-- 
Georgi Chorbadzhiyski
http://georgi.unixsol.org/



More information about the MPlayer-dev-eng mailing list