DEADSOFTWARE

sdl2: fix building with sdl2
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Wed, 1 Apr 2020 09:48:07 +0000 (13:48 +0400)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Wed, 1 Apr 2020 09:48:07 +0000 (13:48 +0400)
src/sdl2/main.c

index c1b872ca71a417cf29817d220d91b251dd07e10b..66b6680aefec37471739a81acd7bf3cd2ef250ae 100644 (file)
@@ -187,11 +187,10 @@ void Y_unset_videomode (void) {
   }
 }
 
-int Y_set_fullscreen (int yes) {
+void Y_set_fullscreen (int yes) {
   if (window != NULL) {
     SDL_SetWindowFullscreen(window, yes ? SDL_WINDOW_FULLSCREEN : 0);
   }
-  return yes;
 }
 
 int Y_get_fullscreen (void) {