diff options
author | wm4 <wm4@nowhere> | 2015-02-14 16:23:01 +0100 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-02-16 18:15:05 +0900 |
commit | f94318babc0929cb03c904486b998390b7dc64b8 (patch) | |
tree | 0bd16ddbfa7122967f9ad4340a73d135e7533058 | |
parent | b476d21d0a6c97b59d5da4d00cc4f5b3a8b57be6 (diff) | |
download | mpv-f94318babc0929cb03c904486b998390b7dc64b8.tar.bz2 mpv-f94318babc0929cb03c904486b998390b7dc64b8.tar.xz |
x11: fix uninitialized variable reads
This line of code ended up in the wrong block in commit cd6dfcbe.
(cherry picked from commit f247294d7346306ef9f42a986d693df4743f9152)
-rw-r--r-- | video/out/x11_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 3dfb6e1218..dcac1788a3 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -1550,8 +1550,8 @@ static void vo_x11_update_geometry(struct vo *vo) w = h = 0; XTranslateCoordinates(x11->display, win, x11->rootwin, 0, 0, &x, &y, &dummy_win); + x11->winrc = (struct mp_rect){x, y, x + w, y + h}; } - x11->winrc = (struct mp_rect){x, y, x + w, y + h}; double fps = 1000.0; for (int n = 0; n < x11->num_displays; n++) { struct xrandr_display *disp = &x11->displays[n]; |