SFROTZ: make window resizable
authorFlorian Léger <florian.leger6@gmail.com>
Wed, 10 Jul 2019 07:55:04 +0000 (09:55 +0200)
committerFlorian Léger <florian.leger6@gmail.com>
Wed, 10 Jul 2019 07:55:04 +0000 (09:55 +0200)
src/sdl/sf_video.c

index af0143ebabd69326600b9c97cd18135659dbb6ce..533f6b25f4a35efb9919ea52c401989eaf325a79 100644 (file)
@@ -426,7 +426,7 @@ static void sf_toggle_fullscreen()
 
 void sf_initvideo( int W, int H, int full)
 {
-    Uint32 video_flags = 0, pixfmt;
+    Uint32 video_flags = SDL_WINDOW_RESIZABLE, pixfmt;
     Uint32 initflags = SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_AUDIO;
 
     sprintf(banner, "SDL Frotz v%s - %s (z%d)",
@@ -446,7 +446,7 @@ void sf_initvideo( int W, int H, int full)
 
     isfullscreen = full;
     if (full)
-        video_flags = SDL_WINDOW_FULLSCREEN_DESKTOP;
+        video_flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
     if ((window = SDL_CreateWindow(
             banner, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
             W, H, video_flags)))