diff options
-rw-r--r-- | backends/graphics/psp2sdl/psp2sdl-graphics.cpp | 4 | ||||
-rw-r--r-- | backends/platform/sdl/psp2/psp2.cpp | 2 |
2 files changed, 2 insertions, 4 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; diff --git a/backends/platform/sdl/psp2/psp2.cpp b/backends/platform/sdl/psp2/psp2.cpp index 3c0cb9106d..94b06e6d23 100644 --- a/backends/platform/sdl/psp2/psp2.cpp +++ b/backends/platform/sdl/psp2/psp2.cpp @@ -101,7 +101,7 @@ void OSystem_PSP2::initBackend() { ConfMan.setInt("joystick_deadzone", 2); } if (!ConfMan.hasKey("shader")) { - ConfMan.setInt("shader", 0); + ConfMan.setInt("shader", 2); } // Create the savefile manager |