engine: platform: sdl: set QtWayland hints

This commit is contained in:
Alibek Omarov 2023-06-02 06:18:47 +03:00
parent 59412f3d92
commit a23e17c6d7
1 changed files with 3 additions and 0 deletions

View File

@ -988,6 +988,9 @@ qboolean R_Init_Video( const int type )
refState.desktopBitsPixel = 16;
#endif
SDL_SetHint( SDL_HINT_QTWAYLAND_WINDOW_FLAGS, "OverridesSystemGestures" );
SDL_SetHint( SDL_HINT_QTWAYLAND_CONTENT_ORIENTATION, "landscape" );
#if SDL_VERSION_ATLEAST( 2, 0, 0 ) && !XASH_WIN32
SDL_SetHint( "SDL_VIDEO_X11_XRANDR", "1" );
SDL_SetHint( "SDL_VIDEO_X11_XVIDMODE", "1" );