mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 04:41:39 +00:00
installer_wizard: fix arrow circle spinning animation misaligning
This commit is contained in:
parent
82e4f5d42a
commit
7f85fb6ecb
1 changed files with 1 additions and 1 deletions
|
|
@ -242,7 +242,7 @@ static void DrawHeaderIcons()
|
|||
ImVec2 arrowCircleMin = { Scale(iconsPosX - iconsScale / 2), Scale(iconsPosY - iconsScale / 2) };
|
||||
ImVec2 arrowCircleMax = { Scale(iconsPosX + iconsScale / 2), Scale(iconsPosY + iconsScale / 2) };
|
||||
|
||||
ImVec2 center = { Scale(iconsPosX), Scale(iconsPosY) };
|
||||
ImVec2 center = { Scale(iconsPosX) + 0.5f, Scale(iconsPosY) };
|
||||
float currentAngle = g_arrowCircleCurrentRotation * (3.14159f / 180.0f); // Rotation angle in radians
|
||||
float cos_a = cosf(currentAngle);
|
||||
float sin_a = sinf(currentAngle);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue