[MPlayer-cvslog] r33901 - trunk/libvo/vo_directx.c
reimar
subversion at mplayerhq.hu
Sun Jul 24 21:10:45 CEST 2011
Author: reimar
Date: Sun Jul 24 21:10:45 2011
New Revision: 33901
Log:
Use FFMIN/FFMAX.
Modified:
trunk/libvo/vo_directx.c
Modified: trunk/libvo/vo_directx.c
==============================================================================
--- trunk/libvo/vo_directx.c Sun Jul 24 21:03:19 2011 (r33900)
+++ trunk/libvo/vo_directx.c Sun Jul 24 21:10:45 2011 (r33901)
@@ -579,14 +579,10 @@ static uint32_t Directx_ManageDisplay(vo
}
/*make sure the overlay is inside the screen*/
- if (rd.left < 0)
- rd.left = 0;
- if (rd.right > vo_screenwidth)
- rd.right = vo_screenwidth;
- if (rd.top < 0)
- rd.top = 0;
- if (rd.bottom > vo_screenheight)
- rd.bottom = vo_screenheight;
+ rd.top = FFMAX(rd.top, 0);
+ rd.left = FFMAX(rd.left, 0);
+ rd.bottom = FFMIN(rd.bottom, vo_screenheight);
+ rd.right = FFMIN(rd.right, vo_screenwidth);
/*for nonoverlay mode we are finished, for overlay mode we have to display the overlay first*/
if (nooverlay)
More information about the MPlayer-cvslog
mailing list