From ebbf92578db8b8b51d3a3b64f5befd30ec8b4547 Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Thu, 31 May 2012 22:08:09 +0200 Subject: WINTERMUTE: Re-enable scaling. --- engines/wintermute/BSurfaceSDL.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'engines') diff --git a/engines/wintermute/BSurfaceSDL.cpp b/engines/wintermute/BSurfaceSDL.cpp index bb99f47a12..d12a9b7a8f 100644 --- a/engines/wintermute/BSurfaceSDL.cpp +++ b/engines/wintermute/BSurfaceSDL.cpp @@ -456,12 +456,9 @@ HRESULT CBSurfaceSDL::DrawSprite(int X, int Y, RECT *Rect, float ZoomX, float Zo position.left = X; position.top = Y; // TODO: Scaling... - /* + position.setWidth((float)srcRect.width() * ZoomX / 100.f); position.setHeight((float)srcRect.height() * ZoomX / 100.f); - */ - position.setWidth(srcRect.width()); - position.setHeight(srcRect.height()); renderer->ModTargetRect(&position); -- cgit v1.2.3