mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-12 04:36:15 +00:00
ZVISION: Fix frame scaling for 2bpp
This commit is contained in:
parent
372c55fd8b
commit
7e93b6407a
@ -61,11 +61,13 @@ void scaleBuffer(const byte *src, byte *dst, uint32 srcWidth, uint32 srcHeight,
|
|||||||
const byte color = *srcPtr++;
|
const byte color = *srcPtr++;
|
||||||
const byte color2 = *srcPtr++;
|
const byte color2 = *srcPtr++;
|
||||||
|
|
||||||
dst[i] = color;
|
|
||||||
dst[i + 1] = color2;
|
|
||||||
dst[pitch + i] = color;
|
|
||||||
dst[pitch + i + 1] = color2;
|
|
||||||
for (uint i = 0; i < scaleAmount; i++) {
|
for (uint i = 0; i < scaleAmount; i++) {
|
||||||
|
uint index = i *2;
|
||||||
|
|
||||||
|
dst[index] = color;
|
||||||
|
dst[index + 1] = color2;
|
||||||
|
dst[pitch + index] = color;
|
||||||
|
dst[pitch + index + 1] = color2;
|
||||||
}
|
}
|
||||||
dst += 2 * scaleAmount;
|
dst += 2 * scaleAmount;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user