aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-07-08 18:18:26 +0000
committerMax Horn2003-07-08 18:18:26 +0000
commitfe944219eb449234c207ee3987973695d3d9a0aa (patch)
tree15f2d6bc3deb2efd9edc64ab8f107146a55cd785 /scumm
parentd5b1b68634bc949b08adedc34e3e420fa8e7d612 (diff)
downloadscummvm-rg350-fe944219eb449234c207ee3987973695d3d9a0aa.tar.gz
scummvm-rg350-fe944219eb449234c207ee3987973695d3d9a0aa.tar.bz2
scummvm-rg350-fe944219eb449234c207ee3987973695d3d9a0aa.zip
not sure which of the two variants is correct (but I am pretty sure the old one, with _height>>3, was wrong)
svn-id: r8867
Diffstat (limited to 'scumm')
-rw-r--r--scumm/costume.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/scumm/costume.cpp b/scumm/costume.cpp
index 3df8537185..927f6357cb 100644
--- a/scumm/costume.cpp
+++ b/scumm/costume.cpp
@@ -319,14 +319,15 @@ void CostumeRenderer::procC64() {
len = color & 0x7f;
color = *src++;
while (len--) {
- for (int i = 0; i < 8; i++) {
+// for (int i = 0; i < 8; i++)
+ {
dst[0] = dst[1] = _vm->gdi._C64Colors[(color >> 6) & 3];
dst[2] = dst[3] = _vm->gdi._C64Colors[(color >> 4) & 3];
dst[4] = dst[5] = _vm->gdi._C64Colors[(color >> 2) & 3];
dst[6] = dst[7] = _vm->gdi._C64Colors[(color >> 0) & 3];
dst += _outwidth;
+ y++;
}
- y+=8;
if (y >= _height) {
y = 0;
dst = v1.destptr + (x << 3);
@@ -336,14 +337,15 @@ void CostumeRenderer::procC64() {
len = color;
while (len--) {
color = *src++;
- for (int i = 0; i < 8; i++) {
+// for (int i = 0; i < 8; i++)
+ {
dst[0] = dst[1] = _vm->gdi._C64Colors[(color >> 6) & 3];
dst[2] = dst[3] = _vm->gdi._C64Colors[(color >> 4) & 3];
dst[4] = dst[5] = _vm->gdi._C64Colors[(color >> 2) & 3];
dst[6] = dst[7] = _vm->gdi._C64Colors[(color >> 0) & 3];
dst += _outwidth;
+ y++;
}
- y+=8;
if (y >= _height) {
y = 0;
dst = v1.destptr + (x << 3);