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
This commit is contained in:
Eugene Sandulenko 2005-03-24 03:22:32 +00:00
parent b0a1228c43
commit 9ab0962f6d
8 changed files with 116 additions and 77 deletions

View file

@ -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();
}