[Scummvm-cvs-logs] SF.net SVN: scummvm:[43622] scummvm/trunk/backends/platform/sdl/graphics. cpp

dhewg at users.sourceforge.net dhewg at users.sourceforge.net
Sat Aug 22 01:04:06 CEST 2009


Revision: 43622
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43622&view=rev
Author:   dhewg
Date:     2009-08-21 23:04:06 +0000 (Fri, 21 Aug 2009)

Log Message:
-----------
Removed redundant checks, the asserts() earlier do exactly the same.

Modified Paths:
--------------
    scummvm/trunk/backends/platform/sdl/graphics.cpp

Modified: scummvm/trunk/backends/platform/sdl/graphics.cpp
===================================================================
--- scummvm/trunk/backends/platform/sdl/graphics.cpp	2009-08-21 22:56:09 UTC (rev 43621)
+++ scummvm/trunk/backends/platform/sdl/graphics.cpp	2009-08-21 23:04:06 UTC (rev 43622)
@@ -975,30 +975,6 @@
 		 * and just updates those, on the actual display. */
 		addDirtyRgnAuto(src);
 	} else {
-		/* Clip the coordinates */
-		if (x < 0) {
-			w += x;
-			src -= x;
-			x = 0;
-		}
-
-		if (y < 0) {
-			h += y;
-			src -= y * pitch;
-			y = 0;
-		}
-
-		if (w > _videoMode.screenWidth - x) {
-			w = _videoMode.screenWidth - x;
-		}
-
-		if (h > _videoMode.screenHeight - y) {
-			h = _videoMode.screenHeight - y;
-		}
-
-		if (w <= 0 || h <= 0)
-			return;
-
 		_cksumValid = false;
 		addDirtyRect(x, y, w, h);
 	}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list