diff options
author | Alyssa Milburn | 2012-08-23 23:20:32 +0200 |
---|---|---|
committer | Alyssa Milburn | 2012-08-25 08:41:21 +0200 |
commit | 68c6109e7645c46be7c4bbd20fc0f3d68897ccc5 (patch) | |
tree | fedd27750d91737367fe5e0e32cd4f2ac44c8b46 | |
parent | 0163bd38e8ba45635237340a69894c3678ed5f50 (diff) | |
download | scummvm-rg350-68c6109e7645c46be7c4bbd20fc0f3d68897ccc5.tar.gz scummvm-rg350-68c6109e7645c46be7c4bbd20fc0f3d68897ccc5.tar.bz2 scummvm-rg350-68c6109e7645c46be7c4bbd20fc0f3d68897ccc5.zip |
TONY: Draw the dirty rectangle debugging last.
Otherwise the rects are overwritten by the actual drawing.
-rw-r--r-- | engines/tony/window.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/tony/window.cpp b/engines/tony/window.cpp index b603fa39f3..1e60e636f3 100644 --- a/engines/tony/window.cpp +++ b/engines/tony/window.cpp @@ -165,14 +165,16 @@ void RMWindow::getNewFrame(RMGfxTargetBuffer &bigBuf, Common::Rect *rcBoundEllip Common::Rect &r = *i; const byte *lpSrc = lpBuf + (RM_SX * 2) * r.top + (r.left * 2); copyRectToScreen(lpSrc, RM_SX * 2, r.left, r.top, r.width(), r.height()); + } - if (_showDirtyRects) + if (_showDirtyRects) { + for (i = dirtyRects.begin(); i != dirtyRects.end(); ++i) { // Frame the copied area with a rectangle - s->frameRect(r, 0xffffff); - } + s->frameRect(*i, 0xffffff); + } - if (_showDirtyRects) g_system->unlockScreen(); + } } if (_bGrabThumbnail) { |