mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-24 00:45:33 +00:00
Fix rotation direction and center point on PSP
This commit is contained in:
parent
2b572dff88
commit
54304b971d
|
@ -904,16 +904,16 @@ PSP_QueueCopyEx(SDL_Renderer * renderer, SDL_RenderCommand *cmd, SDL_Texture * t
|
||||||
|
|
||||||
cmd->data.draw.count = 1;
|
cmd->data.draw.count = 1;
|
||||||
|
|
||||||
MathSincos(degToRad(angle), &s, &c);
|
MathSincos(degToRad(360-angle), &s, &c);
|
||||||
|
|
||||||
cw1 = c * width;
|
cw1 = c * -centerx;
|
||||||
sw1 = s * width;
|
sw1 = s * -centerx;
|
||||||
ch1 = c * height;
|
ch1 = c * -centery;
|
||||||
sh1 = s * height;
|
sh1 = s * -centery;
|
||||||
cw2 = c * -centerx;
|
cw2 = c * width;
|
||||||
sw2 = s * -centerx;
|
sw2 = s * width;
|
||||||
ch2 = c * -centery;
|
ch2 = c * height;
|
||||||
sh2 = s * -centery;
|
sh2 = s * height;
|
||||||
|
|
||||||
if (flip & SDL_FLIP_VERTICAL) {
|
if (flip & SDL_FLIP_VERTICAL) {
|
||||||
Swap(&v0, &v1);
|
Swap(&v0, &v1);
|
||||||
|
|
Loading…
Reference in a new issue