mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Automatically scale UI elements for high resolutions
This fixes UI elements being tiny on high resolutions like 4K. Now most UI elements will scale automatically with resolutions above 1920x1080.
This commit is contained in:
parent
47983481c9
commit
6fe1e86b31
37 changed files with 504 additions and 334 deletions
|
@ -318,7 +318,7 @@ void UILabel::Draw(void)
|
|||
m_iFontAlignmentVertical,
|
||||
string,
|
||||
UBlack,
|
||||
m_bVirtual ? m_vVirtualScale : NULL
|
||||
getVirtualScale()
|
||||
);
|
||||
} else {
|
||||
// print the text
|
||||
|
@ -327,7 +327,7 @@ void UILabel::Draw(void)
|
|||
m_iFontAlignmentHorizontal,
|
||||
m_iFontAlignmentVertical,
|
||||
string,
|
||||
m_bVirtual ? m_vVirtualScale : NULL
|
||||
getVirtualScale()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue