mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
(VITA) Fix rotation
This commit is contained in:
parent
7ecca928e1
commit
b4bd9cf830
@ -239,8 +239,9 @@ static bool vita2d_gfx_frame(void *data, const void *frame,
|
|||||||
const float rad = vita->rotation * radian;
|
const float rad = vita->rotation * radian;
|
||||||
float scalex = vita->vp.width / (float)vita->width;
|
float scalex = vita->vp.width / (float)vita->width;
|
||||||
float scaley = vita->vp.height / (float)vita->height;
|
float scaley = vita->vp.height / (float)vita->height;
|
||||||
vita2d_draw_texture_scale_rotate(vita->texture, vita->vp.x,
|
vita2d_draw_texture_scale_rotate(vita->texture,
|
||||||
vita->vp.y, scalex, scaley, rad);
|
vita->vp.x + PSP_FB_WIDTH / (float)vita->width,
|
||||||
|
vita->vp.y + PSP_FB_HEIGHT / (float)vita->height, scalex, scaley, rad);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user