aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/gfx/osystem
diff options
context:
space:
mode:
authorTobia Tesan2013-07-09 20:57:03 +0200
committerTobia Tesan2013-08-01 00:03:46 +0200
commitb34d7b753912af6dd971872cd702d489974606ff (patch)
tree621c07f2ce02c9be03a9d1787398314b5a1621bb /engines/wintermute/base/gfx/osystem
parent0b21d6dca2ad5be41fa2aa4c2bed2cb694fba4d1 (diff)
downloadscummvm-rg350-b34d7b753912af6dd971872cd702d489974606ff.tar.gz
scummvm-rg350-b34d7b753912af6dd971872cd702d489974606ff.tar.bz2
scummvm-rg350-b34d7b753912af6dd971872cd702d489974606ff.zip
WINTERMUTE: *transform as pointer in transform_tools
Diffstat (limited to 'engines/wintermute/base/gfx/osystem')
-rw-r--r--engines/wintermute/base/gfx/osystem/render_ticket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/base/gfx/osystem/render_ticket.cpp b/engines/wintermute/base/gfx/osystem/render_ticket.cpp
index 3f94c2e500..8ea4f18605 100644
--- a/engines/wintermute/base/gfx/osystem/render_ticket.cpp
+++ b/engines/wintermute/base/gfx/osystem/render_ticket.cpp
@@ -53,7 +53,7 @@ RenderTicket::RenderTicket(BaseSurfaceOSystem *owner, const Graphics::Surface *s
// Then scale it if necessary
if (_transform._angle != 0) {
TransparentSurface src(*_surface, false);
- Graphics::Surface *temp = src.rotate(transform);
+ Graphics::Surface *temp = src.rotate(&transform);
_surface->free();
delete _surface;
_surface = temp;
@@ -70,7 +70,7 @@ RenderTicket::RenderTicket(BaseSurfaceOSystem *owner, const Graphics::Surface *s
if (transform._angle != 0) { // Make sure comparison-tickets get the correct width
Rect32 dstRect;
Point32 newHotspot;
- dstRect = TransformTools::newRect(_srcRect, transform, &newHotspot);
+ dstRect = TransformTools::newRect(_srcRect, &transform, &newHotspot);
_dstRect.setWidth(dstRect.right-dstRect.left);
_dstRect.setHeight(dstRect.bottom-dstRect.top);
}