@@ -71,9 +71,6 @@ static std::string langRegion;
7171static std::string osName;
7272static std::string gpuDriverVersion;
7373
74- typedef BOOL (WINAPI *isProcessDPIAwareProc)();
75- typedef BOOL (WINAPI *setProcessDPIAwareProc)();
76-
7774void LaunchBrowser (const char *url) {
7875 ShellExecute (NULL , L" open" , ConvertUTF8ToWString (url).c_str (), NULL , NULL , SW_SHOWNORMAL );
7976}
@@ -328,22 +325,6 @@ bool System_InputBoxGetWString(const wchar_t *title, const std::wstring &default
328325 }
329326}
330327
331- void MakePPSSPPDPIAware ()
332- {
333- isProcessDPIAwareProc isDPIAwareProc = (isProcessDPIAwareProc)
334- GetProcAddress (GetModuleHandle (TEXT (" User32.dll" )), " IsProcessDPIAware" );
335-
336- setProcessDPIAwareProc setDPIAwareProc = (setProcessDPIAwareProc)
337- GetProcAddress (GetModuleHandle (TEXT (" User32.dll" )), " SetProcessDPIAware" );
338-
339- // If we're not DPI aware, make it so, but do it safely.
340- if (isDPIAwareProc != nullptr ) {
341- if (!isDPIAwareProc ()) {
342- if (setDPIAwareProc != nullptr )
343- setDPIAwareProc ();
344- }
345- }
346- }
347328
348329std::vector<std::wstring> GetWideCmdLine () {
349330 wchar_t **wargv;
@@ -361,9 +342,6 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
361342
362343 CoInitializeEx (NULL , COINIT_MULTITHREADED );
363344
364- // Windows Vista and above: alert Windows that PPSSPP is DPI aware,
365- // so that we don't flicker in fullscreen on some PCs.
366- MakePPSSPPDPIAware ();
367345
368346 // FMA3 support in the 2013 CRT is broken on Vista and Windows 7 RTM (fixed in SP1). Just disable it.
369347#ifdef _M_X64
0 commit comments