From b4bd9cf8309c24045263d0e2a93d6cdfddeb11c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Jos=C3=A9=20Garc=C3=ADa=20Garc=C3=ADa?= Date: Sun, 31 Jul 2016 19:48:55 +0200 Subject: [PATCH] (VITA) Fix rotation --- gfx/drivers/vita2d_gfx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gfx/drivers/vita2d_gfx.c b/gfx/drivers/vita2d_gfx.c index d982fe420a..f2c7fb49ac 100644 --- a/gfx/drivers/vita2d_gfx.c +++ b/gfx/drivers/vita2d_gfx.c @@ -239,8 +239,9 @@ static bool vita2d_gfx_frame(void *data, const void *frame, const float rad = vita->rotation * radian; float scalex = vita->vp.width / (float)vita->width; float scaley = vita->vp.height / (float)vita->height; - vita2d_draw_texture_scale_rotate(vita->texture, vita->vp.x, - vita->vp.y, scalex, scaley, rad); + vita2d_draw_texture_scale_rotate(vita->texture, + vita->vp.x + PSP_FB_WIDTH / (float)vita->width, + vita->vp.y + PSP_FB_HEIGHT / (float)vita->height, scalex, scaley, rad); } }