Improvements

This commit is contained in:
Christian Semmler 2023-12-31 14:30:16 -05:00
parent a58ceeb85c
commit 5086b0f9f3

View File

@ -373,11 +373,11 @@ void MxDisplaySurface::VTable0x28(
while (p_height--) { while (p_height--) {
MxU8* surfaceBefore = surface; MxU8* surfaceBefore = surface;
for (MxS32 i = 0; p_width > i; *(surface - 1) = *(data - 1)) { for (MxS32 i = 0; p_width > i; i++) {
MxU8 element = *data++; MxU8 element = *data;
surface += 2; *surface++ = element;
++i; data++;
*(surface - 2) = element; *surface++ = *(data - 1);
} }
data += v22; data += v22;