Fix linewidth in wlr_screencast.c
This commit is contained in:
parent
cc59abb124
commit
61db8968f9
|
@ -124,7 +124,10 @@ static void wlr_frame_buffer(void *data, struct zwlr_screencopy_frame_v1 *frame,
|
||||||
|
|
||||||
logprint(TRACE, "wlroots: buffer event handler");
|
logprint(TRACE, "wlroots: buffer event handler");
|
||||||
cast->wlr_frame = frame;
|
cast->wlr_frame = frame;
|
||||||
if (cast->simple_frame.width != width || cast->simple_frame.height != height || cast->simple_frame.stride != stride || cast->simple_frame.format != format) {
|
if (cast->simple_frame.width != width ||
|
||||||
|
cast->simple_frame.height != height ||
|
||||||
|
cast->simple_frame.stride != stride ||
|
||||||
|
cast->simple_frame.format != format) {
|
||||||
logprint(TRACE, "wlroots: buffer properties changed");
|
logprint(TRACE, "wlroots: buffer properties changed");
|
||||||
wlr_frame_buffer_chparam(cast, format, width, height, stride);
|
wlr_frame_buffer_chparam(cast, format, width, height, stride);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue