From 60bff5991aaa39e005c5d50be3134b4afb0051c7 Mon Sep 17 00:00:00 2001 From: Dan Lawrence Date: Sun, 8 Oct 2023 17:50:09 +0100 Subject: [PATCH] Add docs for windows DPI awareness hint --- docs/reST/ref/pygame.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/reST/ref/pygame.rst b/docs/reST/ref/pygame.rst index 60ad58b220..38e8b2ee2c 100644 --- a/docs/reST/ref/pygame.rst +++ b/docs/reST/ref/pygame.rst @@ -546,4 +546,19 @@ before calling :func:`pygame.init()` or :func:`pygame.joystick.init()`. Useful for testing touch events on desktop platforms (e.g. with a trackpad) where this is set to 0 by default. +| + +:: + + "SDL_WINDOWS_DPI_AWARENESS" + Set to "permonitorv2" on windows 10 (and later) to declare the pygame + window DPI aware and ignore the desktop scaling, "permonitor" for + windows 8.1 and later DPI awareness and "system" for windows Vista + and later DPI awareness (not per monitor). Finally set it to "unaware", + to have the pygame window scale with the desktop scaling. + +This hint only affects the windows platform, other platforms can control DPI awareness +via a Window creation keyword parameter called "allow_high_dpi". + +