From b02ba7c9ff56a74dc92538e2765f3092beaab5c7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 29 Jan 2014 22:29:54 +0000 Subject: [PATCH] Don't mark wxMSW applications as being DPI aware. Because they are not, fully. While our standard controls do appear correctly in any DPI, anything using bitmaps/icons (e.g. toolbars, AUI title bars, ...) isn't usable at all without scaling at high DPI, so it's better to avoid pretending that we're DPI aware at all rather than doing it without being it for 100%. This reverts the changes of r63990. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/main.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/msw/main.cpp b/src/msw/main.cpp index 65b4fc1750..b8afafea04 100644 --- a/src/msw/main.cpp +++ b/src/msw/main.cpp @@ -284,19 +284,6 @@ bool wxIsUnicodeAvailable() #endif // NEED_UNICODE_CHECK -void wxSetProcessDPIAware() -{ -#if wxUSE_DYNLIB_CLASS - typedef BOOL (WINAPI *SetProcessDPIAware_t)(void); - wxDynamicLibrary dllUser32(wxT("user32.dll")); - SetProcessDPIAware_t pfnSetProcessDPIAware = - (SetProcessDPIAware_t)dllUser32.RawGetSymbol(wxT("SetProcessDPIAware")); - - if ( pfnSetProcessDPIAware ) - pfnSetProcessDPIAware(); -#endif // wxUSE_DYNLIB_CLASS -} - } //anonymous namespace // ---------------------------------------------------------------------------- @@ -400,13 +387,6 @@ WXDLLEXPORT int wxEntry(HINSTANCE hInstance, wxCmdLineArgType WXUNUSED(pCmdLine), int nCmdShow) { - // wxWidgets library doesn't have problems with non-default DPI settings, - // so we can mark the app as "DPI aware" for Vista/Win7 (see - // http://msdn.microsoft.com/en-us/library/dd464659%28VS.85%29.aspx). - // Note that we intentionally do it here and not in wxApp, so that it - // doesn't happen if wx code is hosted in another app (e.g. a plugin). - wxSetProcessDPIAware(); - if ( !wxMSWEntryCommon(hInstance, nCmdShow) ) return -1;