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:
smallmodel 2024-11-30 19:59:54 +01:00
parent 47983481c9
commit 6fe1e86b31
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
37 changed files with 504 additions and 334 deletions

View file

@ -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()
);
}
}