Browse Source

engine: platform: sdl: set QtWayland hints

pull/2/head
Alibek Omarov 2 years ago
parent
commit
a23e17c6d7
  1. 3
      engine/platform/sdl/vid_sdl.c

3
engine/platform/sdl/vid_sdl.c

@ -988,6 +988,9 @@ qboolean R_Init_Video( const int type ) @@ -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" );

Loading…
Cancel
Save