upp.src: HiDPI fixes

git-svn-id: svn://ultimatepp.org/upp/trunk@8790 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-08-05 14:00:46 +00:00
parent 6998e11c21
commit 4147ebe8ec
11 changed files with 56 additions and 122 deletions

View file

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