aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gui
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2009-10-06 17:16:27 +0000
committerWillem Jan Palenstijn2009-10-06 17:16:27 +0000
commitd1bca7ced6ff4d20906720ef72a490cddfba4a64 (patch)
tree55ade725f3009db52caff69c577297beef611a9f /engines/sci/gui
parent1342d0482110ca26bffdf10bbc66eb377e22fd03 (diff)
downloadscummvm-rg350-d1bca7ced6ff4d20906720ef72a490cddfba4a64.tar.gz
scummvm-rg350-d1bca7ced6ff4d20906720ef72a490cddfba4a64.tar.bz2
scummvm-rg350-d1bca7ced6ff4d20906720ef72a490cddfba4a64.zip
SCI: Minor cleanup
svn-id: r44706
Diffstat (limited to 'engines/sci/gui')
-rw-r--r--engines/sci/gui/gui_gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp
index e6b2c85464..0eb840a727 100644
--- a/engines/sci/gui/gui_gfx.cpp
+++ b/engines/sci/gui/gui_gfx.cpp
@@ -172,7 +172,7 @@ void SciGuiGfx::PaintRect(const Common::Rect &rect) {
}
void SciGuiGfx::FillRect(const Common::Rect &rect, int16 drawFlags, byte clrPen, byte clrBack, byte bControl) {
- Common::Rect r(rect.left, rect.top, rect.right, rect.bottom);
+ Common::Rect r = rect;
r.clip(_curPort->rect);
if (r.isEmpty()) // nothing to fill
return;