diff options
author | Tobia Tesan | 2013-07-18 16:03:06 +0200 |
---|---|---|
committer | Tobia Tesan | 2013-08-01 02:17:28 +0200 |
commit | d83e4e1268e7422abd6f00463065f6e12fea15f7 (patch) | |
tree | 03c36ff2ea007cc5d816f376e15ea8d4d9eb820c /engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | |
parent | 14d151ab31d8163f3e7dc943be191c3a98bd4f6b (diff) | |
download | scummvm-rg350-d83e4e1268e7422abd6f00463065f6e12fea15f7.tar.gz scummvm-rg350-d83e4e1268e7422abd6f00463065f6e12fea15f7.tar.bz2 scummvm-rg350-d83e4e1268e7422abd6f00463065f6e12fea15f7.zip |
WINTERMUTE: FActor out TransformStruc initialization in repeatLastDraw loop
Diffstat (limited to 'engines/wintermute/base/gfx/osystem/base_render_osystem.cpp')
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp index 06cf531a9e..58bd8d34e1 100644 --- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp @@ -371,12 +371,13 @@ void BaseRenderOSystem::repeatLastDraw(int offsetX, int offsetY, int numTimesX, int initLeft = dstRect.left; int initRight = dstRect.right; + TransformStruct temp = TransformStruct(kDefaultZoomX, kDefaultZoomY, kDefaultAngle, kDefaultHotspotX, kDefaultHotspotY, BLEND_NORMAL, kDefaultRgbaMod, false, false, kDefaultOffsetX, kDefaultOffsetY); + for (int i = 0; i < numTimesY; i++) { if (i == 0) { dstRect.translate(offsetX, 0); } for (int j = (i == 0 ? 1 : 0); j < numTimesX; j++) { - TransformStruct temp = TransformStruct(); drawSurface(origTicket->_owner, origTicket->getSurface(), &srcRect, &dstRect, temp); dstRect.translate(offsetX, 0); } |