aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorVicent Marti2008-10-29 18:57:42 +0000
committerVicent Marti2008-10-29 18:57:42 +0000
commitfccf455bcc815755191c6dacc32ad6689667fe56 (patch)
tree76787411834e907fb5a6ae771ade57fa1efe2cfc /gui
parent73cf59b518b2d9ebd1973b77ac41a6783140e085 (diff)
downloadscummvm-rg350-fccf455bcc815755191c6dacc32ad6689667fe56.tar.gz
scummvm-rg350-fccf455bcc815755191c6dacc32ad6689667fe56.tar.bz2
scummvm-rg350-fccf455bcc815755191c6dacc32ad6689667fe56.zip
Bugfix: Dirty rectangle out of range when blitting into the overlay.
svn-id: r34862
Diffstat (limited to 'gui')
-rw-r--r--gui/ThemeEngine.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/ThemeEngine.h b/gui/ThemeEngine.h
index a257eaaf7c..67b07b71f6 100644
--- a/gui/ThemeEngine.h
+++ b/gui/ThemeEngine.h
@@ -376,6 +376,7 @@ public:
* @param special Deprecated.
*/
bool addDirtyRect(Common::Rect r, bool backup = false, bool special = false) {
+ r.clip(_screen->w, _screen->h);
_dirtyScreen.push_back(r);
return true;
}