summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/w32_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c
index f2d02d2c84..9f0180b49e 100644
--- a/video/out/w32_common.c
+++ b/video/out/w32_common.c
@@ -904,8 +904,8 @@ static int reinit_window_state(struct vo_w32_state *w32)
// Center the final window
n_w = r.right - r.left;
n_h = r.bottom - r.top;
- r.left = screen_w / 2 - n_w / 2;
- r.top = screen_h / 2 - n_h / 2;
+ r.left = w32->screenrc.x0 + screen_w / 2 - n_w / 2;
+ r.top = w32->screenrc.y0 + screen_h / 2 - n_h / 2;
r.right = r.left + n_w;
r.bottom = r.top + n_h;
}