From 0cecbffb608bc1de8a908092ff083d58d3afcc59 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 30 Oct 2009 12:03:31 +0000 Subject: Restore the pen color after changing it in graphFrameBox() svn-id: r45534 --- engines/sci/gui/gui.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) { -- cgit v1.2.3