This commit is contained in:
Christian Semmler 2024-01-20 13:55:27 -05:00
parent 75e04b8d62
commit 04de75e09e

View File

@ -618,10 +618,14 @@ LPDIRECTDRAWSURFACE MxDisplaySurface::VTable0x44(
bitmapSrcPtr += rowSeek; bitmapSrcPtr += rowSeek;
surfaceData = (MxU16*) ((MxU8*) surfaceData + newPitch); surfaceData = (MxU16*) ((MxU8*) surfaceData + newPitch);
} }
surface->Unlock(ddsd.lpSurface); surface->Unlock(ddsd.lpSurface);
if (p_transparent && surface) { if (p_transparent && surface) {
DDCOLORKEY key; DDCOLORKEY key;
surface->SetColorKey(8, &key); key.dwColorSpaceHighValue = 0;
key.dwColorSpaceLowValue = 0;
surface->SetColorKey(DDCKEY_SRCBLT, &key);
} }
break; break;
} }