mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 20:03:10 +02:00
x11: fix uninitialized variable reads
This line of code ended up in the wrong block in commitcd6dfcbe
. (cherry picked from commitf247294d73
)
This commit is contained in:
parent
b476d21d0a
commit
f94318babc
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user