aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2012-07-26 20:15:32 +0200
committerTorbjörn Andersson2012-07-26 20:15:32 +0200
commita5bfbeed32c175119db2eb2510a7afd3626fae47 (patch)
tree9dc5fb3058734c9520486b94470a9f79c3261329 /engines
parent09d9b0d8c989eb57c9e2254ecf9074cdc1963636 (diff)
downloadscummvm-rg350-a5bfbeed32c175119db2eb2510a7afd3626fae47.tar.gz
scummvm-rg350-a5bfbeed32c175119db2eb2510a7afd3626fae47.tar.bz2
scummvm-rg350-a5bfbeed32c175119db2eb2510a7afd3626fae47.zip
TONY: Don't pass uninitialised rect to addDirtyRect()
Wait until after we have the destination rect. Unfortunately, this does not fix any of the graphical glitches during the intro.
Diffstat (limited to 'engines')
-rw-r--r--engines/tony/gfxcore.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/tony/gfxcore.cpp b/engines/tony/gfxcore.cpp
index 119b730303..ca6dd45c14 100644
--- a/engines/tony/gfxcore.cpp
+++ b/engines/tony/gfxcore.cpp
@@ -2018,9 +2018,6 @@ void RMGfxBox::draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim)
uint16 *buf = bigBuf;
RMRect rcDst;
- // Specify the drawn area
- bigBuf.addDirtyRect(rcDst);
-
// It takes the destination rectangle
rcDst = prim->getDst();
buf += rcDst._y1 * bigBuf.getDimx() + rcDst._x1;
@@ -2032,6 +2029,9 @@ void RMGfxBox::draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim)
buf += bigBuf.getDimx() - rcDst.width();
}
+
+ // Specify the drawn area
+ bigBuf.addDirtyRect(rcDst);
}