mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-14 22:22:59 +02:00
ffplay: fix borderless mode on Windows
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
012dd8c99a
commit
af621b6d6e
4
ffplay.c
4
ffplay.c
@ -1261,13 +1261,15 @@ static int video_open(VideoState *is)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!window) {
|
if (!window) {
|
||||||
int flags = SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE;
|
int flags = SDL_WINDOW_SHOWN;
|
||||||
if (!window_title)
|
if (!window_title)
|
||||||
window_title = input_filename;
|
window_title = input_filename;
|
||||||
if (is_full_screen)
|
if (is_full_screen)
|
||||||
flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
||||||
if (borderless)
|
if (borderless)
|
||||||
flags |= SDL_WINDOW_BORDERLESS;
|
flags |= SDL_WINDOW_BORDERLESS;
|
||||||
|
else
|
||||||
|
flags |= SDL_WINDOW_RESIZABLE;
|
||||||
window = SDL_CreateWindow(window_title, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, w, h, flags);
|
window = SDL_CreateWindow(window_title, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, w, h, flags);
|
||||||
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
|
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
|
||||||
if (window) {
|
if (window) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user