[Scummvm-cvs-logs] scummvm master -> f248a09f0f942e7c36b3e490a83a99b6f70759e5

wjp wjp at usecode.org
Tue Oct 8 23:32:25 CEST 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
f248a09f0f WINTERMUTE: Fix displayTransOffset


Commit: f248a09f0f942e7c36b3e490a83a99b6f70759e5
    https://github.com/scummvm/scummvm/commit/f248a09f0f942e7c36b3e490a83a99b6f70759e5
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2013-10-08T14:30:21-07:00

Commit Message:
WINTERMUTE: Fix displayTransOffset

Regression from 14cb1f09c0bc2cace830eaa793227f195acb06bc.
This fixes font border drawing.

Changed paths:
    engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp



diff --git a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp
index f141215..95f99a3 100644
--- a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp
+++ b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp
@@ -428,8 +428,8 @@ bool BaseSurfaceOSystem::drawSprite(int x, int y, Rect32 *rect, Rect32 *newRect,
 
 		r = TransformTools::newRect(r, transform, 0);
 
-		position.top = r.top + y;
-		position.left = r.left + x;
+		position.top = r.top + y + transform._offset.y;
+		position.left = r.left + x + transform._offset.x;
 		position.setWidth(r.width() * transform._numTimesX);
 		position.setHeight(r.height() * transform._numTimesY);
 	}






More information about the Scummvm-git-logs mailing list