Skip to content

Commit 0537a08

Browse files
joye-ramonexrSimpodin
authored andcommitted
вернул CUILines::GetVIndentByAlign() как было
хз что там навернел но top выравнение точно не должно так работать
1 parent c66e8ef commit 0537a08

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ogsr_engine/xrGame/ui/UILines.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -617,11 +617,7 @@ float CUILines::GetVIndentByAlign()
617617

618618
switch (m_eVTextAlign)
619619
{
620-
case valTop: {
621-
float delta_h = m_pFont->ScaleHeightDelta();
622-
UI()->ClientToScreenScaledHeight(delta_h);
623-
return delta_h * -1;
624-
}
620+
case valTop: r = 0; break;
625621
case valCenter: r = (m_wndSize.y - GetVisibleHeight()) / 2; break;
626622
case valBotton: r = m_wndSize.y - GetVisibleHeight(); break;
627623
default: NODEFAULT;

0 commit comments

Comments
 (0)