From 559df64edc9b9565ce7c0239224d40835d1f2d1a Mon Sep 17 00:00:00 2001 From: Rajan Singh <700308+woahitsraj@users.noreply.github.com> Date: Sun, 8 Nov 2026 00:48:24 +0900 Subject: [PATCH] Add NOTPROTON_RETINA_DPI=0 to keep LogPixels with High Resolution --- dylib/feats/compat_run.sh | 4 +++- dylib/tests/settingscheck.sh | 12 +++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/dylib/feats/compat_run.sh b/dylib/feats/compat_run.sh index c4571607..3f4c93bb 100755 --- a/dylib/feats/compat_run.sh +++ b/dylib/feats/compat_run.sh @@ -1899,10 +1899,12 @@ winebus_lines() { printf '%s\r\n' '[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\WineBus]' "$hidraw_value" '' } -# High Resolution doubles LogPixels and turning it off halves it +# High Resolution doubles LogPixels and turning it off halves it. +# NOTPROTON_RETINA_DPI=0 leaves it alone, since Wine shrinks the screen for games that are not DPI aware. plan_logpixels() { dpi_value="" new_dpi="" + [ "${NOTPROTON_RETINA_DPI-}" != 0 ] || return 0 dpi_registry=/dev/null [ ! -f "$WINEPREFIX/user.reg" ] || dpi_registry="$WINEPREFIX/user.reg" read -r retina_was dpi <