diff options
author | wm4 <wm4@mplayer2.org> | 2011-10-28 12:39:43 +0200 |
---|---|---|
committer | wm4 <wm4@mplayer2.org> | 2012-03-17 20:58:16 +0100 |
commit | 32de5df90cfa6102dc339410bb85a0784ecec61e (patch) | |
tree | 13652c46ced1f2dbcc9b9582d91747fd45819c49 /libvo/vo_directx.c | |
parent | 2449cbde2c31e1429fd8507880d68721cf95efe1 (diff) | |
download | mpv-32de5df90cfa6102dc339410bb85a0784ecec61e.tar.bz2 mpv-32de5df90cfa6102dc339410bb85a0784ecec61e.tar.xz |
win32, vo_directx: don't use vo_dx/dy, directly query window position
This should be a bit robuster than trying to maintain vo_dx/dy.
vo_dy/dy are now completely unused on win32, except for initialization.
Diffstat (limited to 'libvo/vo_directx.c')
-rw-r--r-- | libvo/vo_directx.c | 7 |
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; |