diff options
author | Filippos Karapetis | 2009-10-30 12:03:31 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-10-30 12:03:31 +0000 |
commit | 0cecbffb608bc1de8a908092ff083d58d3afcc59 (patch) | |
tree | 8ea2f084fbbbeda80a3442ed319ff3214d574aa0 /engines | |
parent | 932cd54bbe0bb612eb828637c13ee068b4640b95 (diff) | |
download | scummvm-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
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/gui/gui.cpp | 2 |
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) { |