aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2013-10-06 14:11:44 +0200
committerWillem Jan Palenstijn2013-10-06 14:24:38 +0200
commitead4e831807950116dfe6d6f1be70c30f9eb48f4 (patch)
tree55bd3ae19d20f9ce05b48b0f0583657a3f935a07 /engines/wintermute/base
parentfe5d12a4844494edcf31c9549a339cddf1f5d8d8 (diff)
downloadscummvm-rg350-ead4e831807950116dfe6d6f1be70c30f9eb48f4.tar.gz
scummvm-rg350-ead4e831807950116dfe6d6f1be70c30f9eb48f4.tar.bz2
scummvm-rg350-ead4e831807950116dfe6d6f1be70c30f9eb48f4.zip
WINTERMUTE: Remove presumably outdated off-by-one correction
This correction no longer seems to be necessary, and removes an off-by-one in the J.U.L.I.A. Demo main menu screen.
Diffstat (limited to 'engines/wintermute/base')
-rw-r--r--engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp
index 67d8f3f425..af0215a6b6 100644
--- a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp
+++ b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp
@@ -419,13 +419,6 @@ bool BaseSurfaceOSystem::drawSprite(int x, int y, Rect32 *rect, Rect32 *newRect,
position.left = x + transform._offset.x;
position.top = y + transform._offset.y;
- // Crop off-by-ones:
- if (position.left == -1) {
- position.left = 0; // TODO: Something is wrong
- }
- if (position.top == -1) {
- position.top = 0; // TODO: Something is wrong
- }
if (newRect) {
position.top = y;
position.left = x;