From 6e838648238bd3afbc1b38641e6d875b0e2679ec Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 9 May 2014 21:49:19 +0200 Subject: w32_common: fix typo Also, reset rc completely, instead of assuming things. --- video/out/w32_common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'video') diff --git a/video/out/w32_common.c b/video/out/w32_common.c index 6588ac7573..96e8c69702 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -718,8 +718,9 @@ static void w32_update_xinerama_info(struct vo *vo) GetSystemMetrics(SM_CYVIRTUALSCREEN), }; if (!rc.x1 || !rc.y1) { - rc.x1 = w32->screenrc.x1; // assume screenrc.x0==y0==0 - rc.x1 = w32->screenrc.y1; + rc.x0 = rc.y0 = 0; + rc.x1 = w32->screenrc.x1; + rc.y1 = w32->screenrc.y1; } rc.x1 += rc.x0; rc.y1 += rc.y0; -- cgit v1.2.3