[Scummvm-git-logs] scummvm master -> d73437c293c2f47cab48c46f844eb6ba0ad95528

rsn8887 rsn8887 at users.noreply.github.com
Sat Dec 2 18:54:23 CET 2017


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:
d73437c293 PSP2: fix odd resolutions on PSP2, fixes Phantasmagoria


Commit: d73437c293c2f47cab48c46f844eb6ba0ad95528
    https://github.com/scummvm/scummvm/commit/d73437c293c2f47cab48c46f844eb6ba0ad95528
Author: rsn8887 (rsn8887 at users.noreply.github.com)
Date: 2017-12-02T11:53:23-06:00

Commit Message:
PSP2: fix odd resolutions on PSP2, fixes Phantasmagoria

Changed paths:
    backends/graphics/psp2sdl/psp2sdl-graphics.cpp


diff --git a/backends/graphics/psp2sdl/psp2sdl-graphics.cpp b/backends/graphics/psp2sdl/psp2sdl-graphics.cpp
index affcf9d..f7d6bcb 100644
--- a/backends/graphics/psp2sdl/psp2sdl-graphics.cpp
+++ b/backends/graphics/psp2sdl/psp2sdl-graphics.cpp
@@ -459,6 +459,10 @@ void PSP2SdlGraphicsManager::setAspectRatioCorrection(bool enable) {
 }
 
 SDL_Surface *PSP2SdlGraphicsManager::SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags) {
+	// Vita requires resolution to be divisible by eight
+	width-=width%8;
+	height-=height%8;
+
 	SDL_Surface *screen = SurfaceSdlGraphicsManager::SDL_SetVideoMode(width, height, bpp, flags);
 	
 	if (screen != nullptr) {





More information about the Scummvm-git-logs mailing list