From: Marius Vlad Date: Thu, 13 Jan 2022 17:29:21 +0000 (+0200) Subject: client/screenshooter: Compute the width/height for a single output X-Git-Tag: 12.92.0~2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=2ee86feebc8888d10973a0d3dce1fdd25cd2e6d6;p=src%2Fagl-compositor.git client/screenshooter: Compute the width/height for a single output We're missing determining the buffers dimenions, so this basically adds that. Turns out this was introduced w/ commit 'clients/screenshooter: Fix taking screenshot on multiple outputs'. Still clueless on how this worked in CI, unless we're using `-a' to take a screenshot on all outputs. Bug-AGL: SPEC-4217 Signed-off-by: Marius Vlad Change-Id: I9a849457e9ca40f0b36e7249d9142b32ca3114ab --- diff --git a/clients/screenshooter.c b/clients/screenshooter.c index 8c2b553..b68f4ad 100644 --- a/clients/screenshooter.c +++ b/clients/screenshooter.c @@ -406,6 +406,8 @@ screenshot_set_buffer_size_per_output(struct buffer_size *buff_size, buff_size->max_x = MAX(buff_size->max_x, output->offset_x + output->width); buff_size->max_y = MAX(buff_size->max_y, output->offset_y + output->height); + buff_size->width = buff_size->max_x - buff_size->min_x; + buff_size->height = buff_size->max_y - buff_size->min_y; } static void