mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 08:55:45 +00:00
SCUMM: make sure asmDrawStripToScreen is not called in 16bit mode
(fixes possible issue in LOOM PCE)
This commit is contained in:
parent
afc6b2e617
commit
cc77de35c2
@ -658,9 +658,6 @@ void ScummEngine::drawStripToScreen(VirtScreen *vs, int x, int width, int top, i
|
||||
return;
|
||||
} else
|
||||
#endif
|
||||
#ifdef USE_ARM_GFX_ASM
|
||||
asmDrawStripToScreen(height, width, text, src, _compositeBuf, vs->pitch, width, _textSurface.pitch);
|
||||
#else
|
||||
if (_outputPixelFormat.bytesPerPixel == 2) {
|
||||
const byte *srcPtr = (const byte *)src;
|
||||
const byte *textPtr = (byte *)_textSurface.getBasePtr(x * m, y * m);
|
||||
@ -682,7 +679,11 @@ void ScummEngine::drawStripToScreen(VirtScreen *vs, int x, int width, int top, i
|
||||
srcPtr += vsPitch;
|
||||
textPtr += _textSurface.pitch - width * m;
|
||||
}
|
||||
} else {
|
||||
}
|
||||
#ifdef USE_ARM_GFX_ASM
|
||||
asmDrawStripToScreen(height, width, text, src, _compositeBuf, vs->pitch, width, _textSurface.pitch);
|
||||
#else
|
||||
else {
|
||||
// We blit four pixels at a time, for improved performance.
|
||||
const uint32 *src32 = (const uint32 *)src;
|
||||
uint32 *dst32 = (uint32 *)_compositeBuf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user