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.
This commit is contained in:
Willem Jan Palenstijn 2013-10-06 14:11:44 +02:00
parent fe5d12a484
commit ead4e83180

View File

@ -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;