Fix linewidth in wlr_screencast.c

This commit is contained in:
columbarius 2020-08-23 17:12:26 +02:00 committed by Simon Ser
parent cc59abb124
commit 61db8968f9
1 changed files with 4 additions and 1 deletions

View File

@ -124,7 +124,10 @@ static void wlr_frame_buffer(void *data, struct zwlr_screencopy_frame_v1 *frame,
logprint(TRACE, "wlroots: buffer event handler");
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");
wlr_frame_buffer_chparam(cast, format, width, height, stride);
}