summaryrefslogtreecommitdiffstats
path: root/libvo/vo_x11.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-15 18:56:25 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-15 18:56:25 +0000
commit4b9ee2e2063f8d0a56288cb9d1aa8b35e640600b (patch)
treeb871040755c18ef882d0f8d0fcc46bcec7e31ba1 /libvo/vo_x11.c
parentc8d9e2eb60e942009c35270b97045e84e74dd5d5 (diff)
downloadmpv-4b9ee2e2063f8d0a56288cb9d1aa8b35e640600b.tar.bz2
mpv-4b9ee2e2063f8d0a56288cb9d1aa8b35e640600b.tar.xz
Simplify vo_vm_switch and vo_vm_close, everyone was using the (almost) same
boiler-plate code with them, just with different bugs. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27924 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_x11.c')
-rw-r--r--libvo/vo_x11.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index 41de2c7e95..af5dcfb0a8 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -377,17 +377,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
#ifdef CONFIG_XF86VM
if (vm)
{
- if ((d_width == 0) && (d_height == 0))
- {
- vm_width = image_width;
- vm_height = image_height;
- } else
- {
- vm_width = d_width;
- vm_height = d_height;
- }
- vo_vm_switch(vm_width, vm_height, &modeline_width,
- &modeline_height);
+ vo_vm_switch();
}
#endif
bg = WhitePixel(mDisplay, mScreen);
@@ -704,7 +694,7 @@ static void uninit(void)
freeMyXImage();
#ifdef CONFIG_XF86VM
- vo_vm_close(mDisplay);
+ vo_vm_close();
#endif
zoomFlag = 0;