[Scummvm-cvs-logs] SF.net SVN: scummvm:[33792] scummvm/trunk/engines/cine/gfx.cpp

buddha_ at users.sourceforge.net buddha_ at users.sourceforge.net
Tue Aug 12 01:20:11 CEST 2008


Revision: 33792
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33792&view=rev
Author:   buddha_
Date:     2008-08-11 23:20:10 +0000 (Mon, 11 Aug 2008)

Log Message:
-----------
Made Operation Stealth's action failure messages use a background color set by the opcode 0x49 'o1_setDefaultMenuBgColor'. Should fix the 'text hard to read' problems.

Modified Paths:
--------------
    scummvm/trunk/engines/cine/gfx.cpp

Modified: scummvm/trunk/engines/cine/gfx.cpp
===================================================================
--- scummvm/trunk/engines/cine/gfx.cpp	2008-08-11 23:08:21 UTC (rev 33791)
+++ scummvm/trunk/engines/cine/gfx.cpp	2008-08-11 23:20:10 UTC (rev 33792)
@@ -1104,6 +1104,20 @@
 		}
 		break;
 
+	// action failure message
+	case 3: {
+		int idx = it->objIdx * 4 + g_cine->_rnd.getRandomNumber(3);
+		int len = strlen(failureMessages[idx]);
+		_messageLen += len;
+		int width = 6 * len + 20;
+		width = width > 300 ? 300 : width;
+
+		// The used color here differs from Future Wars
+		drawMessage(failureMessages[idx], (320 - width) / 2, 80, width, _messageBg);
+		waitForPlayerClick = 1;
+		break;
+	}
+
 	// bitmap
 	case 4:
 		if (objectTable[it->objIdx].frame >= 0) {


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