mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 07:06:59 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user