mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 13:13:58 +00:00
BACKENDS: PSP: Fix pixelformat, fixes crash on startup
This commit is contained in:
parent
f8c37e4546
commit
8ab7d43079
@ -80,7 +80,7 @@ void PSPPixelFormat::convertFromScummvmPixelFormat(const Graphics::PixelFormat *
|
||||
if (pf->bytesPerPixel == 1) {
|
||||
bufferType = Type_Palette_8bit;
|
||||
target = &paletteType; // The type describes the palette
|
||||
} else if (pf->bytesPerPixel == 2) {
|
||||
} else if (pf->bytesPerPixel == 2 || pf->bytesPerPixel == 4) {
|
||||
paletteType = Type_None;
|
||||
target = &bufferType; // The type describes the buffer
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user