[MPlayer-dev-eng] vo_x11, vm-fullscreen
Uwe Reder
Uwe.Reder at 3SOFT.de
Wed May 15 09:13:25 CEST 2002
Some time ago I sent a patch to avoid moving the video in fullscreen mode
(X11 Video Mode Switching (-vm)). This could happen when accidently touching
the mouse. The patch was accepted and worked fine until latest 0.90pre4.
What I think is wrong with 0.90pre4:
In config() [libvo/vo_x11.c], vo_x11_fullscreen() [libvo/x11_common.c] is
called, which calls XMoveResizeWindow(). XMoveResizeWindow() resizes the
virtual window to standard desktop size. I think vo_x11_fullscreen() should
*only* be called when resizing (-fullscreen) and *not* for video mode
switching (-vm).
The following worked out for me:
Instead of "if (fullscreen) vo_x11_fullscreen()" [libvo/vo_x11.c, line 349]
put in the following lines:
if (fullscreen) {
if (vm) vo_x11_decoration(mDisplay,vo_window,0);
else vo_x11_fullscreen();
}
Uwe.
--
----------------------------------------------------
Uwe Reder, Dipl.-Inf. (Univ.), mobile applications
3SOFT GmbH, Frauenweiherstr. 14, 91058 Erlangen, Germany
Tel. +49-9131-7701-133 mailto:Uwe.Reder at 3SOFT.de
Fax +49-9131-7701-333 http://www.3SOFT.de
More information about the MPlayer-dev-eng
mailing list