diff options
author | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-04-18 15:52:38 +0000 |
---|---|---|
committer | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-04-18 15:52:38 +0000 |
commit | dbb001bae23b18295014c9fc925538902f956c35 (patch) | |
tree | a7198cff9124bed9cbf3665c6f325c641330e092 /libvo/vo_xv.c | |
parent | da39de73a8f773d2516eadd20ea2172efc3df2a3 (diff) | |
download | mpv-dbb001bae23b18295014c9fc925538902f956c35.tar.bz2 mpv-dbb001bae23b18295014c9fc925538902f956c35.tar.xz |
replace VO and VF numeric flags with #defined identifiers
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15213 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xv.c')
-rw-r--r-- | libvo/vo_xv.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c index 4d41f4862d..36a9fdac69 100644 --- a/libvo/vo_xv.c +++ b/libvo/vo_xv.c @@ -188,10 +188,10 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, vo_dheight = d_height; #ifdef HAVE_XF86VM - if (flags & 0x02) + if (flags & VOFLAG_MODESWITCHING) vm = 1; #endif - flip_flag = flags & 8; + flip_flag = flags & VOFLAG_FLIPPING; num_buffers = vo_doublebuffering ? (vo_directrendering ? NUM_BUFFERS : 2) : 1; @@ -331,7 +331,7 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, NULL, 0, &hint); vo_x11_sizehint(hint.x, hint.y, hint.width, hint.height, 0); XMapWindow(mDisplay, vo_window); - if (flags & 1) + if (flags & VOFLAG_FULLSCREEN) vo_x11_fullscreen(); else { @@ -346,7 +346,7 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, if (!vo_fs) XMoveResizeWindow(mDisplay, vo_window, hint.x, hint.y, hint.width, hint.height); - if (flags & 1 && !vo_fs) + if (flags & VOFLAG_FULLSCREEN && !vo_fs) vo_x11_fullscreen(); // handle -fs on non-first file } @@ -405,7 +405,7 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, #endif aspect(&vo_dwidth, &vo_dheight, A_NOZOOM); - if (((flags & 1) && (WinID <= 0)) || vo_fs) + if (((flags & VOFLAG_FULLSCREEN) && (WinID <= 0)) || vo_fs) { aspect(&vo_dwidth, &vo_dheight, A_ZOOM); drwX = |