Skip to content

Commit

Permalink
mouse rotation adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
headshot2017 committed May 9, 2024
1 parent ffeab79 commit 940b926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/client/components/menus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1832,7 +1832,7 @@ void CMenus::OnRender()
Graphics()->QuadsBegin();
Graphics()->SetColor(1,1,1,1);
Graphics()->QuadsSetRotation((wd->ir.angle+45) / 180.f * pi);
Graphics()->QuadsSetRotationCenter(mx, my);
Graphics()->QuadsSetRotationCenter(mx+1, my+1);
IGraphics::CQuadItem QuadItem(mx, my, 24, 24);
Graphics()->QuadsDrawTL(&QuadItem, 1);
Graphics()->QuadsEnd();
Expand Down

0 comments on commit 940b926

Please sign in to comment.