Skip to content

Commit fc91646

Browse files
authored
Set DPI awareness hint to fix blurry text (#81139)
1 parent 9e2fd4b commit fc91646

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sdltiles.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ static void InitSDL()
191191
SDL_SetHint( SDL_HINT_IME_SUPPORT_EXTENDED_TEXT, "1" );
192192
#endif
193193

194+
#if defined(SDL_HINT_WINDOWS_DPI_AWARENESS)
195+
SDL_SetHint( SDL_HINT_WINDOWS_DPI_AWARENESS, "permonitorv2" );
196+
#endif
197+
194198
#if defined(SDL_HINT_APP_NAME)
195199
// Requires SDL 2.0.18. String used multiple ways, one of them is the game
196200
// identifying itself when asking to inhibit screensaver via dbus under

0 commit comments

Comments
 (0)