[Scummvm-cvs-logs] SF.net SVN: scummvm: [24814] scummvm/trunk/engines/agi

darkfiber at users.sourceforge.net darkfiber at users.sourceforge.net
Thu Dec 7 02:03:14 CET 2006


Revision: 24814
          http://scummvm.svn.sourceforge.net/scummvm/?rev=24814&view=rev
Author:   darkfiber
Date:     2006-12-06 17:00:26 -0800 (Wed, 06 Dec 2006)

Log Message:
-----------
Fixed button rendering

Modified Paths:
--------------
    scummvm/trunk/engines/agi/graphics.cpp
    scummvm/trunk/engines/agi/text.cpp

Modified: scummvm/trunk/engines/agi/graphics.cpp
===================================================================
--- scummvm/trunk/engines/agi/graphics.cpp	2006-12-07 00:32:32 UTC (rev 24813)
+++ scummvm/trunk/engines/agi/graphics.cpp	2006-12-07 01:00:26 UTC (rev 24814)
@@ -285,7 +285,7 @@
 	y2 = y + CHAR_LINES + 2;
 
 	while (*s) {
-		putTextCharacter(0, x + (!!p), y + (!!p), *s++, a ? fgcolor : bgcolor, a ? bgcolor : fgcolor);
+		putTextCharacter(0, x + (!!p), y + (!!p), *s++, a ? bgcolor : fgcolor, a ? fgcolor : bgcolor);
 		x += CHAR_COLS;
 	}
 

Modified: scummvm/trunk/engines/agi/text.cpp
===================================================================
--- scummvm/trunk/engines/agi/text.cpp	2006-12-07 00:32:32 UTC (rev 24813)
+++ scummvm/trunk/engines/agi/text.cpp	2006-12-07 01:00:26 UTC (rev 24814)
@@ -209,7 +209,7 @@
 }
 
 /**
- * Wrap text line to the specified width. 
+ * Wrap text line to the specified width.
  * @param str  String to wrap.
  * @param len  Length of line.
  */
@@ -352,7 +352,7 @@
 	debugC(4, kDebugLevelText, "waiting...");
 	for (;;) {
 		for (i = 0; b[i]; i++)
-			_gfx->drawButton(bx[i], by[i], b[i], i == active, 0);
+			_gfx->drawButton(bx[i], by[i], b[i], i == active, 0, MSG_BOX_TEXT, MSG_BOX_COLOUR);
 
 		_gfx->pollTimer();	/* msdos driver -> does nothing */
 		key = do_poll_keyboard();


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