Make sure vo_x11_create_vo_window sets vo_dwidth and vo_dheight right

when we were in fullscreen mode and stay there.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28806 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar
2009-03-04 08:37:54 +00:00
parent f31339b75b
commit 76f7f3aa0d
+6
View File
@@ -1135,6 +1135,12 @@ void vo_x11_create_vo_window(XVisualInfo *vis, int x, int y,
vo_x11_nofs_sizepos(vo_dx, vo_dy, width, height);
if (!!vo_fs != !!(flags & VOFLAG_FULLSCREEN))
vo_x11_fullscreen();
else if (vo_fs) {
// if we are already in fullscreen do not switch back and forth, just
// set the size values right.
vo_dwidth = vo_screenwidth;
vo_dheight = vo_screenheight;
}
final:
if (vo_gc != None)
XFreeGC(mDisplay, vo_gc);