mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 08:29:36 +00:00
w32_common: fix typo
Also, reset rc completely, instead of assuming things.
This commit is contained in:
parent
fc4a43d39a
commit
6e83864823
@ -718,8 +718,9 @@ static void w32_update_xinerama_info(struct vo *vo)
|
|||||||
GetSystemMetrics(SM_CYVIRTUALSCREEN),
|
GetSystemMetrics(SM_CYVIRTUALSCREEN),
|
||||||
};
|
};
|
||||||
if (!rc.x1 || !rc.y1) {
|
if (!rc.x1 || !rc.y1) {
|
||||||
rc.x1 = w32->screenrc.x1; // assume screenrc.x0==y0==0
|
rc.x0 = rc.y0 = 0;
|
||||||
rc.x1 = w32->screenrc.y1;
|
rc.x1 = w32->screenrc.x1;
|
||||||
|
rc.y1 = w32->screenrc.y1;
|
||||||
}
|
}
|
||||||
rc.x1 += rc.x0;
|
rc.x1 += rc.x0;
|
||||||
rc.y1 += rc.y0;
|
rc.y1 += rc.y0;
|
||||||
|
Loading…
Reference in New Issue
Block a user