Sfoglia il codice sorgente

Added possibility to switch to borderless fullscreen on non windows (#333)

Aksel 5 anni fa
parent
commit
e0d50b2453
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      libs/sdl/sdl.c

+ 1 - 1
libs/sdl/sdl.c

@@ -491,7 +491,7 @@ HL_PRIM bool HL_NAME(win_set_fullscreen)(SDL_Window *win, int mode) {
 			return true;
 		}
 #	else
-		break;
+		return SDL_SetWindowFullscreen(win, SDL_WINDOW_FULLSCREEN_DESKTOP) == 0;
 #	endif
 	case 3:
 		return SDL_SetWindowFullscreen(win, SDL_WINDOW_FULLSCREEN) == 0;