From: Florian Léger Date: Wed, 10 Jul 2019 07:55:04 +0000 (+0200) Subject: SFROTZ: make window resizable X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=d98e3bcb55b825e6f7db7cafe200944e19532aa6;p=liskon_frotz.git SFROTZ: make window resizable --- diff --git a/src/sdl/sf_video.c b/src/sdl/sf_video.c index af0143e..533f6b2 100644 --- a/src/sdl/sf_video.c +++ b/src/sdl/sf_video.c @@ -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)))