mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
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
This commit is contained in:
parent
d5b1b68634
commit
fe944219eb
@ -319,14 +319,15 @@ void CostumeRenderer::procC64() {
|
|||||||
len = color & 0x7f;
|
len = color & 0x7f;
|
||||||
color = *src++;
|
color = *src++;
|
||||||
while (len--) {
|
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[0] = dst[1] = _vm->gdi._C64Colors[(color >> 6) & 3];
|
||||||
dst[2] = dst[3] = _vm->gdi._C64Colors[(color >> 4) & 3];
|
dst[2] = dst[3] = _vm->gdi._C64Colors[(color >> 4) & 3];
|
||||||
dst[4] = dst[5] = _vm->gdi._C64Colors[(color >> 2) & 3];
|
dst[4] = dst[5] = _vm->gdi._C64Colors[(color >> 2) & 3];
|
||||||
dst[6] = dst[7] = _vm->gdi._C64Colors[(color >> 0) & 3];
|
dst[6] = dst[7] = _vm->gdi._C64Colors[(color >> 0) & 3];
|
||||||
dst += _outwidth;
|
dst += _outwidth;
|
||||||
|
y++;
|
||||||
}
|
}
|
||||||
y+=8;
|
|
||||||
if (y >= _height) {
|
if (y >= _height) {
|
||||||
y = 0;
|
y = 0;
|
||||||
dst = v1.destptr + (x << 3);
|
dst = v1.destptr + (x << 3);
|
||||||
@ -336,14 +337,15 @@ void CostumeRenderer::procC64() {
|
|||||||
len = color;
|
len = color;
|
||||||
while (len--) {
|
while (len--) {
|
||||||
color = *src++;
|
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[0] = dst[1] = _vm->gdi._C64Colors[(color >> 6) & 3];
|
||||||
dst[2] = dst[3] = _vm->gdi._C64Colors[(color >> 4) & 3];
|
dst[2] = dst[3] = _vm->gdi._C64Colors[(color >> 4) & 3];
|
||||||
dst[4] = dst[5] = _vm->gdi._C64Colors[(color >> 2) & 3];
|
dst[4] = dst[5] = _vm->gdi._C64Colors[(color >> 2) & 3];
|
||||||
dst[6] = dst[7] = _vm->gdi._C64Colors[(color >> 0) & 3];
|
dst[6] = dst[7] = _vm->gdi._C64Colors[(color >> 0) & 3];
|
||||||
dst += _outwidth;
|
dst += _outwidth;
|
||||||
|
y++;
|
||||||
}
|
}
|
||||||
y+=8;
|
|
||||||
if (y >= _height) {
|
if (y >= _height) {
|
||||||
y = 0;
|
y = 0;
|
||||||
dst = v1.destptr + (x << 3);
|
dst = v1.destptr + (x << 3);
|
||||||
|
Loading…
Reference in New Issue
Block a user