Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2017-02-03 03:31:30 +0300
committerMarton Balint <cus@passwd.hu>2017-02-04 23:33:55 +0300
commitaf621b6d6e391f22a45bb8cb70765d2afa852b68 (patch)
tree0121c51f59648fed676c293c16cab0e14e96d8a7 /ffplay.c
parent012dd8c99aba4965a48351f5cdf2642547114784 (diff)
ffplay: fix borderless mode on Windows
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 6325e6f999..1c9db73a2b 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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) {