1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 23:02:37 +00:00

w32_common: fix typo

Also, reset rc completely, instead of assuming things.
This commit is contained in:
wm4 2014-05-09 21:49:19 +02:00
parent fc4a43d39a
commit 6e83864823

View File

@ -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;