diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-11-15 18:28:35 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-11-15 18:28:35 +0000 |
commit | c8d9e2eb60e942009c35270b97045e84e74dd5d5 (patch) | |
tree | 718954615eab279d0612689670567823f11be01c /libvo/x11_common.c | |
parent | f2bceedc4915245e68856442c07eb4198bee1e2c (diff) | |
download | mpv-c8d9e2eb60e942009c35270b97045e84e74dd5d5.tar.bz2 mpv-c8d9e2eb60e942009c35270b97045e84e74dd5d5.tar.xz |
Set modified window position and monitor aspect in vo_vm_switch instead of in
individual vo drivers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27923 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r-- | libvo/x11_common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c index cfbdc83d9a..f03a062d73 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -1790,9 +1790,16 @@ void vo_vm_switch(uint32_t X, uint32_t Y, int *modeline_width, XF86VidModeLockModeSwitch(mDisplay, mScreen, 0); XF86VidModeSwitchToMode(mDisplay, mScreen, vidmodes[j]); XF86VidModeSwitchToMode(mDisplay, mScreen, vidmodes[j]); + + // FIXME: all this is more of a hack than proper solution X = (vo_screenwidth - *modeline_width) / 2; Y = (vo_screenheight - *modeline_height) / 2; XF86VidModeSetViewPort(mDisplay, mScreen, X, Y); + vo_dx = X; + vo_dy = Y; + vo_dwidth = *modeline_width; + vo_dheight = *modeline_height; + aspect_save_screenres(*modeline_width, *modeline_height); } } |