[Scummvm-cvs-logs] SF.net SVN: scummvm:[45534] scummvm/trunk/engines/sci/gui/gui.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Fri Oct 30 13:03:31 CET 2009


Revision: 45534
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45534&view=rev
Author:   thebluegr
Date:     2009-10-30 12:03:31 +0000 (Fri, 30 Oct 2009)

Log Message:
-----------
Restore the pen color after changing it in graphFrameBox()

Modified Paths:
--------------
    scummvm/trunk/engines/sci/gui/gui.cpp

Modified: scummvm/trunk/engines/sci/gui/gui.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui.cpp	2009-10-30 11:26:00 UTC (rev 45533)
+++ scummvm/trunk/engines/sci/gui/gui.cpp	2009-10-30 12:03:31 UTC (rev 45534)
@@ -435,8 +435,10 @@
 }
 
 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) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list