From 5f8ef51d6f08e9f70f34eda6c0295368b6ff7dcd Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 13 Aug 2023 18:29:02 +0200 Subject: [PATCH] Fixed the Win32 version of plat_get_dpi(). --- src/win/win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/win.c b/src/win/win.c index cf5c98f6f..3e3535a32 100644 --- a/src/win/win.c +++ b/src/win/win.c @@ -1290,7 +1290,7 @@ endblit(void) double plat_get_dpi(void) { - UINT dpi = GetDeviceCaps(dc, LOGPIXELSX); + UINT dpi = win_get_dpi(hwndRender); return ((double) dpi) / 96.0; }