Message ID | 20170204013809.27536-1-cus@passwd.hu |
---|---|
State | Accepted |
Commit | af621b6d6e391f22a45bb8cb70765d2afa852b68 |
Headers | show |
On Sat, 4 Feb 2017, Marton Balint wrote: > Signed-off-by: Marton Balint <cus@passwd.hu> > --- > 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) { Pushed. Regards, Marton
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) {
Signed-off-by: Marton Balint <cus@passwd.hu> --- ffplay.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)