Skip to content

Commit c2351df

Browse files
Windows GUI: Use older API for getting system DPI, update
1 parent 38aa66c commit c2351df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/GUI/VCL/GUI_Main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ void __fastcall TMainF::GUI_Configure()
249249
GetVersionEx(&osvi);
250250
int DPI;
251251
if (osvi.dwMajorVersion >= 10 && (osvi.dwMajorVersion > 10 || osvi.dwMinorVersion > 0 || osvi.dwBuildNumber >= 17134))
252-
DPI=GetSystemDpiForProcess(GetCurrentProcess());
252+
DPI=GetDeviceCaps(GetDC(NULL), LOGPIXELSX); // GetSystemDpiForProcess(GetCurrentProcess());
253253
else
254254
DPI=GetDeviceCaps(GetDC(NULL), LOGPIXELSX);
255255
float DPIScale=static_cast<float>(DPI)/96;

0 commit comments

Comments
 (0)