Skip to content

Commit

Permalink
Merge pull request #2511 from pygame-community/fix-dpi-aware-fullscreen
Browse files Browse the repository at this point in the history
Add docs for windows DPI awareness hint
  • Loading branch information
ankith26 authored Oct 9, 2023
2 parents 72c3ad1 + 60bff59 commit 3c313a9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/reST/ref/pygame.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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".



0 comments on commit 3c313a9

Please sign in to comment.