diff options
Diffstat (limited to 'video/out/vo_sdl.c')
-rw-r--r-- | video/out/vo_sdl.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/video/out/vo_sdl.c b/video/out/vo_sdl.c index 99af9355ed..ec4cc97ca0 100644 --- a/video/out/vo_sdl.c +++ b/video/out/vo_sdl.c @@ -46,7 +46,6 @@ #include "aspect.h" #include "config.h" #include "vo.h" -#include "geometry.h" struct formatmap_entry { Uint32 sdl; @@ -272,14 +271,12 @@ static bool try_create_renderer(struct vo *vo, int i, const char *driver, if (!is_good_renderer(&ri, driver, vc->allow_sw, NULL)) return false; + bool xy_valid = vo->opts->vo_geometry.xy_valid; + // then actually try vc->window = SDL_CreateWindow("MPV", - geometry_xy_changed - ? vo->dx - : SDL_WINDOWPOS_UNDEFINED, - geometry_xy_changed - ? vo->dy - : SDL_WINDOWPOS_UNDEFINED, + xy_valid ? vo->dx : SDL_WINDOWPOS_UNDEFINED, + xy_valid ? vo->dy : SDL_WINDOWPOS_UNDEFINED, w, h, SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIDDEN); if (!vc->window) { |