summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-15 14:24:32 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-15 14:24:32 +0000
commite0a4769570d187b94a351a69ac5cf09a66d12c04 (patch)
treedba2a57b54e6a3bbb95de3815f700d6911e74ad9 /libvo
parentf85075724981d8f0c49b533648374ddbf61020b3 (diff)
downloadmpv-e0a4769570d187b94a351a69ac5cf09a66d12c04.tar.bz2
mpv-e0a4769570d187b94a351a69ac5cf09a66d12c04.tar.xz
Cosmetics for vo_x11 control() to make it more similar to vo_xv.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27913 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_x11.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index e07b947986..fab0f6c2e1 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -761,10 +761,14 @@ static int control(uint32_t request, void *data, ...)
return int_pause = 0;
case VOCTRL_QUERY_FORMAT:
return query_format(*((uint32_t *) data));
- case VOCTRL_GUISUPPORT:
- return VO_TRUE;
case VOCTRL_GET_IMAGE:
return get_image(data);
+ case VOCTRL_GUISUPPORT:
+ return VO_TRUE;
+ case VOCTRL_FULLSCREEN:
+ vo_x11_fullscreen();
+ vo_x11_clearwindow(mDisplay, vo_window);
+ return VO_TRUE;
case VOCTRL_SET_EQUALIZER:
{
va_list ap;
@@ -790,12 +794,6 @@ static int control(uint32_t request, void *data, ...)
case VOCTRL_ONTOP:
vo_x11_ontop();
return VO_TRUE;
- case VOCTRL_FULLSCREEN:
- {
- vo_x11_fullscreen();
- vo_x11_clearwindow(mDisplay, vo_window);
- }
- return VO_TRUE;
case VOCTRL_UPDATE_SCREENINFO:
update_xinerama_info();
return VO_TRUE;