[Scummvm-git-logs] scummvm master -> 8ab7d43079f505d1a61522165d465545b4aa9d74

rsn8887 rsn8887 at users.noreply.github.com
Sat May 1 03:29:53 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
8ab7d43079 BACKENDS: PSP: Fix pixelformat, fixes crash on startup


Commit: 8ab7d43079f505d1a61522165d465545b4aa9d74
    https://github.com/scummvm/scummvm/commit/8ab7d43079f505d1a61522165d465545b4aa9d74
Author: rsn8887 (rsn8887 at users.noreply.github.com)
Date: 2021-04-30T22:29:24-05:00

Commit Message:
BACKENDS: PSP: Fix pixelformat, fixes crash on startup

Changed paths:
    backends/platform/psp/psppixelformat.cpp


diff --git a/backends/platform/psp/psppixelformat.cpp b/backends/platform/psp/psppixelformat.cpp
index 72302b4d9f..999c4fa973 100644
--- a/backends/platform/psp/psppixelformat.cpp
+++ b/backends/platform/psp/psppixelformat.cpp
@@ -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 {




More information about the Scummvm-git-logs mailing list