aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2009-10-30 12:03:31 +0000
committerFilippos Karapetis2009-10-30 12:03:31 +0000
commit0cecbffb608bc1de8a908092ff083d58d3afcc59 (patch)
tree8ea2f084fbbbeda80a3442ed319ff3214d574aa0
parent932cd54bbe0bb612eb828637c13ee068b4640b95 (diff)
downloadscummvm-rg350-0cecbffb608bc1de8a908092ff083d58d3afcc59.tar.gz
scummvm-rg350-0cecbffb608bc1de8a908092ff083d58d3afcc59.tar.bz2
scummvm-rg350-0cecbffb608bc1de8a908092ff083d58d3afcc59.zip
Restore the pen color after changing it in graphFrameBox()
svn-id: r45534
-rw-r--r--engines/sci/gui/gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp
index 42b66d69aa..6da8e53cb8 100644
--- a/engines/sci/gui/gui.cpp
+++ b/engines/sci/gui/gui.cpp
@@ -435,8 +435,10 @@ void SciGui::graphFillBox(Common::Rect rect, uint16 colorMask, int16 color, int1
}
void SciGui::graphFrameBox(Common::Rect rect, int16 color) {
+ int16 oldColor = _gfx->GetPort()->penClr;
_gfx->PenColor(color);
_gfx->FrameRect(rect);
+ _gfx->PenColor(oldColor);
}
void SciGui::graphDrawLine(Common::Point startPoint, Common::Point endPoint, int16 color, int16 priority, int16 control) {