diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-12-28 07:19:54 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-28 07:19:54 -0800 |
commit | 04b7701e1b7a7f371caffecafae07467aa8970e7 (patch) | |
tree | 55b277ebcf02b58393f76a9abebc12c1ef86bef5 /examples | |
parent | 9c163b7d38f859df0f6b21d04ff4267df74dd290 (diff) | |
parent | 1e6566e6cd885086fce4a0fe61395f316dd9284f (diff) | |
download | wlroots-04b7701e1b7a7f371caffecafae07467aa8970e7.tar.xz |
Merge pull request #534 from emersion/multi-output-fixes
Fixes for multiple outputs
Diffstat (limited to 'examples')
-rw-r--r-- | examples/screenshot.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/examples/screenshot.c b/examples/screenshot.c index a887d1d7..932f5e37 100644 --- a/examples/screenshot.c +++ b/examples/screenshot.c @@ -220,16 +220,10 @@ static void write_image(const char *filename, int width, int height) { } static int set_buffer_size(int *width, int *height) { - struct screenshooter_output *output; min_x = min_y = INT_MAX; max_x = max_y = INT_MIN; - int position = 0; - - wl_list_for_each_reverse(output, &output_list, link) { - output->offset_x = position; - position += output->width; - } + struct screenshooter_output *output; wl_list_for_each(output, &output_list, link) { min_x = MIN(min_x, output->offset_x); min_y = MIN(min_y, output->offset_y); |