aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/graphics/transparent_surface.cpp
diff options
context:
space:
mode:
authorTobia Tesan2013-06-27 17:19:52 +0200
committerTobia Tesan2013-08-01 00:02:47 +0200
commit321c7f071668025b1c9bb16e28a70c29843e45de (patch)
tree996645becb39fab1ccb86545e4006e4713a5b84d /engines/wintermute/graphics/transparent_surface.cpp
parent58e096de97d7b8a0c09f5ac0bd6ff65853669a80 (diff)
downloadscummvm-rg350-321c7f071668025b1c9bb16e28a70c29843e45de.tar.gz
scummvm-rg350-321c7f071668025b1c9bb16e28a70c29843e45de.tar.bz2
scummvm-rg350-321c7f071668025b1c9bb16e28a70c29843e45de.zip
WINTERMUTE: Removed useless argument from rotate()
Diffstat (limited to 'engines/wintermute/graphics/transparent_surface.cpp')
-rw-r--r--engines/wintermute/graphics/transparent_surface.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/graphics/transparent_surface.cpp b/engines/wintermute/graphics/transparent_surface.cpp
index 87cb143dac..3f64305487 100644
--- a/engines/wintermute/graphics/transparent_surface.cpp
+++ b/engines/wintermute/graphics/transparent_surface.cpp
@@ -496,10 +496,10 @@ Common::Rect TransparentSurface::blit(Graphics::Surface &target, int posX, int p
return retSize;
}
-TransparentSurface *TransparentSurface::rotate(Common::Rect aSrcRect, TransformStruct transform) const {
+TransparentSurface *TransparentSurface::rotate(TransformStruct transform) const {
Point32 newHotspot;
- Rect32 rect = TransformTools::newRect(Rect32 (aSrcRect), transform, &newHotspot);
- Common::Rect srcRect(0, 0, (int16)(aSrcRect.right - aSrcRect.left), (int16)(aSrcRect.bottom - aSrcRect.top));
+ Common::Rect srcRect(0, 0, (int16)w, (int16)h);
+ Rect32 rect = TransformTools::newRect(Rect32 (srcRect), transform, &newHotspot);
Common::Rect dstRect(0, 0, (int16)(rect.right - rect.left), (int16)(rect.bottom - rect.top));
TransparentSurface *target = new TransparentSurface();
@@ -526,7 +526,7 @@ TransparentSurface *TransparentSurface::rotate(Common::Rect aSrcRect, TransformS
targY += transform._hotspot.y;
if (FAST_TRANSFORM) {
- bilinearCopy(targX, targY, x, y, srcRect, dstRect, this, target);
+ nearestCopy(targX, targY, x, y, srcRect, dstRect, this, target);
} else {
bilinearCopy(targX, targY, x, y, srcRect, dstRect, this, target);
}