Optimization and tweaks

This commit is contained in:
Wojtek Figat
2021-04-29 23:20:37 +02:00
parent e2789214ae
commit 05f919c50f
36 changed files with 100 additions and 133 deletions

View File

@@ -77,16 +77,6 @@ int32 CalculateDpi(HMODULE shCoreDll)
return (dpiX + dpiY) / 2;
}
int32 CalculateDpi()
{
if (const HMODULE shCoreDll = LoadLibraryW(L"Shcore.dll"))
{
return CalculateDpi(shCoreDll);
}
return 96;
}
LONG GetStringRegKey(HKEY hKey, const Char* strValueName, String& strValue, const String& strDefaultValue)
{
strValue = strDefaultValue;