BACKENDS: PSP: Fix pixelformat, fixes crash on startup

This commit is contained in:
rsn8887 2021-04-30 22:29:07 -05:00
parent f8c37e4546
commit 8ab7d43079

View File

@ -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 {