Skip to content

Commit 5581721

Browse files
committed
sdl_glimp: disable DPI scaling
1 parent 65a8b21 commit 5581721

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/engine/sys/sdl_glimp.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1733,6 +1733,10 @@ static rserr_t GLimp_StartDriverAndSetMode( int mode, bool fullscreen, bool bord
17331733
StartupWMClass variable to PRODUCT_APPID. */
17341734
SDL_SetAppMetadataProperty( SDL_PROP_APP_METADATA_IDENTIFIER_STRING, PRODUCT_APPID );
17351735

1736+
/* Disable DPI scaling.
1737+
See the SDL wiki page for details: https://wiki.libsdl.org/SDL3/SDL_HINT_VIDEO_WAYLAND_SCALE_TO_DISPLAY */
1738+
SDL_SetHint( SDL_HINT_VIDEO_WAYLAND_SCALE_TO_DISPLAY, "1" );
1739+
17361740
if ( !SDL_WasInit( SDL_INIT_VIDEO ) )
17371741
{
17381742
const char *driverName;

0 commit comments

Comments
 (0)