summaryrefslogtreecommitdiffstats
path: root/libvo/vo_directx.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_directx.c')
-rw-r--r--libvo/vo_directx.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c
index 1c8519048b..1c23d15f95 100644
--- a/libvo/vo_directx.c
+++ b/libvo/vo_directx.c
@@ -458,8 +458,11 @@ static uint32_t Directx_ManageDisplay(void)
DWORD dwUpdateFlags = 0;
int width, height;
- rd.left = vo_dx - xinerama_x;
- rd.top = vo_dy - xinerama_y;
+ POINT origin = { 0, 0 };
+ ClientToScreen(vo_w32_window, &origin);
+
+ rd.left = origin.x - xinerama_x;
+ rd.top = origin.y - xinerama_y;
width = vo_dwidth;
height = vo_dheight;