win32: fix AreDpiAwarenessContextsEqual result if not available

This commit is contained in:
Ondrej Pokorny 2022-11-15 13:23:01 +01:00
parent 1751d3c2ed
commit 4a6cd41fca

View File

@ -385,7 +385,7 @@ begin
if Assigned(g_AreDpiAwarenessContextsEqual) then
Result := g_AreDpiAwarenessContextsEqual(dpiContextA, dpiContextB)
else
Result := False;
Result := dpiContextA=dpiContextB;
end;
function GetSystemMetricsForDpi(nIndex: Integer; dpi: UINT): Integer;