Skip to content

Commit

Permalink
Fixed misplaced text on 3tButtons (both COP and CS, #382)
Browse files Browse the repository at this point in the history
I just returned Clear Sky code and it fixed some text misplacements even
in COP.

Why GSC changed this in COP?
  • Loading branch information
Xottab-DUTY committed Feb 10, 2024
1 parent ba154b8 commit 9e11f22
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/xrUICore/Lines/UILines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,8 @@ void CUILines::Draw(float x, float y)
text_pos.set(0, 0);

text_pos.x = x + GetIndentByAlign();
// text_pos.y = y + GetVIndentByAlign();
text_pos.y = y;
text_pos.y = y + GetVIndentByAlign();
UI().ClientToScreenScaled(text_pos);
text_pos.y += GetVIndentByAlign();

if (uFlags.test(flPasswordMode))
{
Expand Down

0 comments on commit 9e11f22

Please sign in to comment.