diff options
Diffstat (limited to 'backends/graphics/psp2sdl')
-rw-r--r-- | backends/graphics/psp2sdl/psp2sdl-graphics.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/graphics/psp2sdl/psp2sdl-graphics.cpp b/backends/graphics/psp2sdl/psp2sdl-graphics.cpp index affcf9d8f5..f7d6bcb44b 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) { |