mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
upp.src: HiDPI fixes
git-svn-id: svn://ultimatepp.org/upp/trunk@8790 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
6998e11c21
commit
4147ebe8ec
11 changed files with 56 additions and 122 deletions
|
|
@ -809,6 +809,18 @@ Font FontZ(int face, int height)
|
|||
return Font(face, Ctrl::VertLayoutZoom(height));
|
||||
}
|
||||
|
||||
bool ApplicationHiDPIEnabled;
|
||||
|
||||
void Ctrl::SetHiDPIEnabled(bool set)
|
||||
{
|
||||
ApplicationHiDPIEnabled = set;
|
||||
}
|
||||
|
||||
bool Ctrl::GetHiDPIEnabled()
|
||||
{
|
||||
return ApplicationHiDPIEnabled;
|
||||
}
|
||||
|
||||
Font StdFontZ(int height) { return FontZ(Font::STDFONT, height); }
|
||||
Font SansSerifZ(int height) { return FontZ(Font::SANSSERIF, height); }
|
||||
Font SerifZ(int height) { return FontZ(Font::SERIF, height); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue