[MPlayer-cvslog] r35170 - trunk/command.c

reimar subversion at mplayerhq.hu
Wed Sep 12 22:48:08 CEST 2012


Author: reimar
Date: Wed Sep 12 22:48:08 2012
New Revision: 35170

Log:
Minor simplification of rescale_input_coordinates.

Modified:
   trunk/command.c

Modified: trunk/command.c
==============================================================================
--- trunk/command.c	Wed Sep 12 22:26:09 2012	(r35169)
+++ trunk/command.c	Wed Sep 12 22:48:08 2012	(r35170)
@@ -81,11 +81,7 @@ static void rescale_input_coordinates(in
         if (vo_screenheight > vo_dheight)       //there are borders along the y axis (usual way)
             iy -= (vo_screenheight - vo_dheight) / 2;
 
-        if (ix < 0 || ix > vo_dwidth) {
-            *dx = *dy = -1.0;
-            return;
-        }                       //we are on one of the borders
-        if (iy < 0 || iy > vo_dheight) {
+        if (ix < 0 || ix > vo_dwidth || iy < 0 || iy > vo_dheight) {
             *dx = *dy = -1.0;
             return;
         }                       //we are on one of the borders


More information about the MPlayer-cvslog mailing list