aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorKari Salminen2008-08-11 23:20:10 +0000
committerKari Salminen2008-08-11 23:20:10 +0000
commit96a1ca17090eb17157707a9e989eec3ebb7c94fc (patch)
tree5209a7cf842acb88e585d8bd94ff5bd0bf0eb845 /engines
parent88ec480cef8d637c2fd69b8197ab3c7de39ede8b (diff)
downloadscummvm-rg350-96a1ca17090eb17157707a9e989eec3ebb7c94fc.tar.gz
scummvm-rg350-96a1ca17090eb17157707a9e989eec3ebb7c94fc.tar.bz2
scummvm-rg350-96a1ca17090eb17157707a9e989eec3ebb7c94fc.zip
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.
svn-id: r33792
Diffstat (limited to 'engines')
-rw-r--r--engines/cine/gfx.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/cine/gfx.cpp b/engines/cine/gfx.cpp
index bb11cea5dc..2df4c54bb3 100644
--- a/engines/cine/gfx.cpp
+++ b/engines/cine/gfx.cpp
@@ -1104,6 +1104,20 @@ void OSRenderer::renderOverlay(const Common::List<overlay>::iterator &it) {
}
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) {