aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics
diff options
context:
space:
mode:
authorrsn88872017-12-02 13:00:22 -0600
committerrsn88872017-12-02 13:00:22 -0600
commitc78fa86860f55ab28554327f0da310a825041655 (patch)
tree26b145496d4540eef919b554056636d1a90ec005 /backends/graphics
parentd73437c293c2f47cab48c46f844eb6ba0ad95528 (diff)
downloadscummvm-rg350-c78fa86860f55ab28554327f0da310a825041655.tar.gz
scummvm-rg350-c78fa86860f55ab28554327f0da310a825041655.tar.bz2
scummvm-rg350-c78fa86860f55ab28554327f0da310a825041655.zip
PSP2: fix clipping and display quality for odd resolutions (Phantasmagoria)
Diffstat (limited to 'backends/graphics')
-rw-r--r--backends/graphics/psp2sdl/psp2sdl-graphics.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/backends/graphics/psp2sdl/psp2sdl-graphics.cpp b/backends/graphics/psp2sdl/psp2sdl-graphics.cpp
index f7d6bcb44b..4be48b55e0 100644
--- a/backends/graphics/psp2sdl/psp2sdl-graphics.cpp
+++ b/backends/graphics/psp2sdl/psp2sdl-graphics.cpp
@@ -459,9 +459,6 @@ 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);
@@ -470,6 +467,7 @@ SDL_Surface *PSP2SdlGraphicsManager::SDL_SetVideoMode(int width, int height, int
_vitatex_hwscreen = vita2d_create_empty_texture_format(width, height, SCE_GXM_TEXTURE_FORMAT_R5G6B5);
_sdlpixels_hwscreen = screen->pixels; // for SDL_FreeSurface...
screen->pixels = vita2d_texture_get_datap(_vitatex_hwscreen);
+ screen->pitch = vita2d_texture_get_stride(_vitatex_hwscreen);
updateShader();
}
return screen;