diff options
author | Marton Balint <cus@passwd.hu> | 2017-02-03 01:31:30 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2017-02-04 21:33:55 +0100 |
commit | af621b6d6e391f22a45bb8cb70765d2afa852b68 (patch) | |
tree | 0121c51f59648fed676c293c16cab0e14e96d8a7 | |
parent | 012dd8c99aba4965a48351f5cdf2642547114784 (diff) | |
download | ffmpeg-af621b6d6e391f22a45bb8cb70765d2afa852b68.tar.gz |
ffplay: fix borderless mode on Windows
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r-- | ffplay.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1261,13 +1261,15 @@ static int video_open(VideoState *is) } if (!window) { - int flags = SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE; + int flags = SDL_WINDOW_SHOWN; if (!window_title) window_title = input_filename; if (is_full_screen) flags |= SDL_WINDOW_FULLSCREEN_DESKTOP; if (borderless) flags |= SDL_WINDOW_BORDERLESS; + else + flags |= SDL_WINDOW_RESIZABLE; window = SDL_CreateWindow(window_title, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, w, h, flags); SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear"); if (window) { |