mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.developing HiDPI
git-svn-id: svn://ultimatepp.org/upp/trunk@8476 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e7797554fc
commit
c8b3aed76e
3 changed files with 5 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ Size SystemDraw::GetPageSize() const
|
|||
|
||||
Size SystemDraw::GetNativeDpi() const
|
||||
{
|
||||
return Dots() ? nativeDpi : Size(96, 96);
|
||||
return nativeDpi;
|
||||
}
|
||||
|
||||
#ifndef PLATFORM_WINCE
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue