aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v2.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-03-24 03:22:32 +0000
committerEugene Sandulenko2005-03-24 03:22:32 +0000
commit9ab0962f6de96fb28dd7ee6b1589fb1b343dda7a (patch)
tree4468cc52c76f506216933126c28fbf47176f6a84 /scumm/script_v2.cpp
parentb0a1228c439a1fbca682af4f4f87a9cb44cdbc69 (diff)
downloadscummvm-rg350-9ab0962f6de96fb28dd7ee6b1589fb1b343dda7a.tar.gz
scummvm-rg350-9ab0962f6de96fb28dd7ee6b1589fb1b343dda7a.tar.bz2
scummvm-rg350-9ab0962f6de96fb28dd7ee6b1589fb1b343dda7a.zip
Lots of MM NES changes from Quietust and me
o Swap palette entries 0x00 and 0x1D in all necessary places. This gets rid of gray background o added a function NES_loadCostumeSet(int n) in order to do #1 for sprites o Widen screen to 256 pixels and center narrow rooms in it o Partial fix for subtitle rendering, now at least first line is rendered with identation svn-id: r17212
Diffstat (limited to 'scumm/script_v2.cpp')
-rw-r--r--scumm/script_v2.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp
index c3397982e7..2cc833265c 100644
--- a/scumm/script_v2.cpp
+++ b/scumm/script_v2.cpp
@@ -1060,10 +1060,7 @@ void ScummEngine_v2::o2_drawSentence() {
sentenceline.bottom = virtscr[2].topline + 8;
sentenceline.left = 0;
sentenceline.right = 319;
- if (_features & GF_NES)
- restoreBG(sentenceline, 0x1d);
- else
- restoreBG(sentenceline);
+ restoreBG(sentenceline);
drawString(2, (byte*)sentence);
}
@@ -1525,10 +1522,7 @@ void ScummEngine_v2::setUserState(byte state) {
rect.bottom = virtscr[2].topline + 8 * 88;
rect.left = 0;
rect.right = 319;
- if (_features & GF_NES)
- restoreBG(rect, 0x1d);
- else
- restoreBG(rect);
+ restoreBG(rect);
// Draw all verbs and inventory
redrawVerbs();
@@ -1552,7 +1546,7 @@ void ScummEngine_v2::o2_switchCostumeSet() {
// NES version of maniac uses this to switch between the two
// groups of costumes it has
if (_features & GF_NES)
- _NESCostumeSet = fetchScriptByte();
+ NES_loadCostumeSet(fetchScriptByte());
else
o2_dummy();
}