aboutsummaryrefslogtreecommitdiff
path: root/scumm/costume.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-03-15 17:56:50 +0000
committerEugene Sandulenko2005-03-15 17:56:50 +0000
commit4824af64bbfd1435f7e8750dc7fed3638d208e35 (patch)
tree1ebf7604d8cc62ff29a1b34d249711cbd9ec8d78 /scumm/costume.cpp
parent86cd961b72455b4513a0d6575c0b65d08fd82d8d (diff)
downloadscummvm-rg350-4824af64bbfd1435f7e8750dc7fed3638d208e35.tar.gz
scummvm-rg350-4824af64bbfd1435f7e8750dc7fed3638d208e35.tar.bz2
scummvm-rg350-4824af64bbfd1435f7e8750dc7fed3638d208e35.zip
Minor NES-related fixes
o Actors do not leave trails, though background isn't restored since that code always uses two buffers and nes isn't. I have to switch it to use two o Add Swedish version of MM NES o Code formatting fixes svn-id: r17156
Diffstat (limited to 'scumm/costume.cpp')
-rw-r--r--scumm/costume.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/scumm/costume.cpp b/scumm/costume.cpp
index f52bc4ef32..36b5bd9866 100644
--- a/scumm/costume.cpp
+++ b/scumm/costume.cpp
@@ -709,9 +709,9 @@ void CostumeRenderer::drawNESCostume(const Actor *a, int limb) {
byte tile = ptr[1];
byte palette = (ptr[2] & 0x03) << 2;
int8 x = ptr[2]; x >>= 2;
+
ptr += 3;
- if (flipped)
- {
+ if (flipped) {
mask = (mask == 0x80) ? 0x01 : 0x80;
x = -x;
}
@@ -742,7 +742,11 @@ void CostumeRenderer::drawNESCostume(const Actor *a, int limb) {
if (bottom < _actorY + y + 8)
bottom = _actorY + y + 8;
}
- _vm->markRectAsDirty(kMainVirtScreen,left,right,top,bottom);
+
+ _draw_top = top;
+ _draw_bottom = bottom;
+
+ _vm->markRectAsDirty(kMainVirtScreen, left, right, top, bottom, _actorID);
}
byte CostumeRenderer::drawLimb(const Actor *a, int limb) {