mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Bug 652109 - SetProcessDPIAware is called regardless if the process is really DPI aware r=roc
This commit is contained in:
parent
99a4dc0b0b
commit
5816bc1751
@ -2751,6 +2751,17 @@ XRE_main(int argc, char* argv[], const nsXREAppData* aAppData)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef XP_WIN
|
||||
// Vista API. Mozilla is DPI Aware.
|
||||
typedef BOOL (*SetProcessDPIAwareFunc)(VOID);
|
||||
|
||||
SetProcessDPIAwareFunc setDPIAware = (SetProcessDPIAwareFunc)
|
||||
GetProcAddress(LoadLibraryW(L"user32.dll"), "SetProcessDPIAware");
|
||||
|
||||
if (setDPIAware)
|
||||
setDPIAware();
|
||||
#endif
|
||||
|
||||
SetupErrorHandling(argv[0]);
|
||||
|
||||
#ifdef CAIRO_HAS_DWRITE_FONT
|
||||
|
@ -177,15 +177,6 @@ nsToolkit::Startup(HMODULE hModule)
|
||||
VERIFY(::RegisterClassW(&wc) ||
|
||||
GetLastError() == ERROR_CLASS_ALREADY_EXISTS);
|
||||
|
||||
// Vista API. Mozilla is DPI Aware.
|
||||
typedef BOOL (*SetProcessDPIAwareFunc)(VOID);
|
||||
|
||||
SetProcessDPIAwareFunc setDPIAware = (SetProcessDPIAwareFunc)
|
||||
GetProcAddress(LoadLibraryW(L"user32.dll"), "SetProcessDPIAware");
|
||||
|
||||
if (setDPIAware)
|
||||
setDPIAware();
|
||||
|
||||
nsUXThemeData::Initialize();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user