.developing HiDPI

git-svn-id: svn://ultimatepp.org/upp/trunk@8476 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-05-27 07:41:17 +00:00
parent e7797554fc
commit c8b3aed76e
3 changed files with 5 additions and 2 deletions

View file

@ -30,7 +30,7 @@ Size SystemDraw::GetPageSize() const
Size SystemDraw::GetNativeDpi() const
{
return Dots() ? nativeDpi : Size(96, 96);
return nativeDpi;
}
#ifndef PLATFORM_WINCE

View file

@ -595,6 +595,8 @@ void ChSysInit()
CtrlsImg::Reset();
ChReset();
XpClear();
GUI_HiDPI_Write(GetStdFontCy() > 22);
GUI_GlobalStyle_Write(IsWinXP() && !ScreenInPaletteMode() && IsSysFlag(0x1022 /*SPI_GETFLATMENU*/)
? GUISTYLE_XP : GUISTYLE_CLASSIC);

View file

@ -721,10 +721,11 @@ void AppMain___()
#ifdef flagTEST_HIDPI
Font fnt = GetStdFont();
SetStdFont(fnt.Height(2 * fnt.GetHeight()));
GUI_HiDPI_Write(1);
DDUMP(GUI_HiDPI());
#endif
SetLanguage(LNG_ENGLISH);
SetDefaultCharset(CHARSET_UTF8);
GUI_HiDPI_Write(1);
const Vector<String>& arg = CommandLine();