[FFmpeg-cvslog] ffplay: fix borderless mode on Windows
Marton Balint
git at videolan.org
Sun Feb 5 00:34:24 EET 2017
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Fri Feb 3 01:31:30 2017 +0100| [af621b6d6e391f22a45bb8cb70765d2afa852b68] | committer: Marton Balint
ffplay: fix borderless mode on Windows
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=af621b6d6e391f22a45bb8cb70765d2afa852b68
---
ffplay.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ffplay.c b/ffplay.c
index 6325e6f..1c9db73 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) {
More information about the ffmpeg-cvslog
mailing list