mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-23 02:15:55 +01:00
engine: platform: sdl: disable restoring desktop resolution for mobile platforms, as it leads to unwanted window minimize (which correctly implemented by SDL by the way)
This commit is contained in:
parent
6728b843f7
commit
1c84a5c8ad
@ -633,7 +633,10 @@ static qboolean VID_SetScreenResolution( int width, int height, window_mode_t wi
|
||||
|
||||
void VID_RestoreScreenResolution( void )
|
||||
{
|
||||
#if SDL_VERSION_ATLEAST( 2, 0, 0 )
|
||||
// on mobile platform fullscreen is designed to be always on
|
||||
// and code below minimizes our window if we're in full screen
|
||||
// don't do that on mobile devices
|
||||
#if SDL_VERSION_ATLEAST( 2, 0, 0 ) && !XASH_MOBILE_PLATFORM
|
||||
switch((window_mode_t)vid_fullscreen.value )
|
||||
{
|
||||
case WINDOW_MODE_WINDOWED:
|
||||
|
Loading…
Reference in New Issue
Block a user