From 70ccc47accf0563ca793f9d0d03fa6908afbfd99 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Fri, 21 Aug 2009 23:04:06 +0000 Subject: Removed redundant checks, the asserts() earlier do exactly the same. svn-id: r43622 --- backends/platform/sdl/graphics.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'backends/platform/sdl') diff --git a/backends/platform/sdl/graphics.cpp b/backends/platform/sdl/graphics.cpp index d3a37f4de7..a67e35cf73 100644 --- a/backends/platform/sdl/graphics.cpp +++ b/backends/platform/sdl/graphics.cpp @@ -975,30 +975,6 @@ void OSystem_SDL::copyRectToScreen(const byte *src, int pitch, int x, int y, int * 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); } -- cgit v1.2.3