From ead4e831807950116dfe6d6f1be70c30f9eb48f4 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sun, 6 Oct 2013 14:11:44 +0200 Subject: 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. --- engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'engines/wintermute/base/gfx') 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; -- cgit v1.2.3