summaryrefslogtreecommitdiffstats
path: root/video/out/vo_sdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo_sdl.c')
-rw-r--r--video/out/vo_sdl.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/video/out/vo_sdl.c b/video/out/vo_sdl.c
index faaa8db0a0..606618caa1 100644
--- a/video/out/vo_sdl.c
+++ b/video/out/vo_sdl.c
@@ -46,6 +46,7 @@
#include "aspect.h"
#include "config.h"
#include "vo.h"
+#include "geometry.h"
struct formatmap_entry {
Uint32 sdl;
@@ -254,8 +255,12 @@ static int init_renderer(struct vo *vo, int w, int h)
struct priv *vc = vo->priv;
vc->window = SDL_CreateWindow("MPV",
- SDL_WINDOWPOS_UNDEFINED,
- SDL_WINDOWPOS_UNDEFINED,
+ geometry_xy_changed
+ ? vo->dx
+ : SDL_WINDOWPOS_UNDEFINED,
+ geometry_xy_changed
+ ? vo->dy
+ : SDL_WINDOWPOS_UNDEFINED,
w, h,
SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIDDEN);
if (!vc->window) {