diff options
author | Andre Heider | 2009-08-21 23:04:06 +0000 |
---|---|---|
committer | Andre Heider | 2009-08-21 23:04:06 +0000 |
commit | 70ccc47accf0563ca793f9d0d03fa6908afbfd99 (patch) | |
tree | 34731910d81fda93fcfcd0ec1b49bb936ace05eb | |
parent | 68fed4c62aae3becba7e723a28850004d8704094 (diff) | |
download | scummvm-rg350-70ccc47accf0563ca793f9d0d03fa6908afbfd99.tar.gz scummvm-rg350-70ccc47accf0563ca793f9d0d03fa6908afbfd99.tar.bz2 scummvm-rg350-70ccc47accf0563ca793f9d0d03fa6908afbfd99.zip |
Removed redundant checks, the asserts() earlier do exactly the same.
svn-id: r43622
-rw-r--r-- | backends/platform/sdl/graphics.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
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); } |