Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package grim for openSUSE:Factory checked in at 2021-04-19 21:06:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/grim (Old) and /work/SRC/openSUSE:Factory/.grim.new.12324 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "grim" Mon Apr 19 21:06:28 2021 rev:5 rq:886686 version:1.3.2 Changes: -------- --- /work/SRC/openSUSE:Factory/grim/grim.changes 2020-07-24 09:59:53.649639568 +0200 +++ /work/SRC/openSUSE:Factory/.grim.new.12324/grim.changes 2021-04-19 21:06:59.300118333 +0200 @@ -1,0 +2,8 @@ +Mon Apr 19 12:07:47 UTC 2021 - Michael Vetter <mvet...@suse.com> + +- Update to 1.3.2: + * Remove unnecessary wl_display_dispatch calls + * Fix 180-degree rotated buffers without Y_INVERT + * main,render: replace assert(false) with abort(). + +------------------------------------------------------------------- Old: ---- v1.3.1.tar.gz New: ---- v1.3.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ grim.spec ++++++ --- /var/tmp/diff_new_pack.4qGD7v/_old 2021-04-19 21:06:59.792119070 +0200 +++ /var/tmp/diff_new_pack.4qGD7v/_new 2021-04-19 21:06:59.792119070 +0200 @@ -1,7 +1,7 @@ # # spec file for package grim # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: grim -Version: 1.3.1 +Version: 1.3.2 Release: 0 Summary: Wayland compositor image grabber License: MIT ++++++ v1.3.1.tar.gz -> v1.3.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grim-1.3.1/main.c new/grim-1.3.2/main.c --- old/grim-1.3.1/main.c 2020-07-21 20:11:14.000000000 +0200 +++ new/grim-1.3.2/main.c 2021-04-17 19:41:14.000000000 +0200 @@ -216,7 +216,7 @@ ext = "jpeg"; break; #else - assert(false); + abort(); #endif } assert(ext != NULL); @@ -389,7 +389,6 @@ state.registry = wl_display_get_registry(state.display); wl_registry_add_listener(state.registry, ®istry_listener, &state); - wl_display_dispatch(state.display); wl_display_roundtrip(state.display); if (state.shm == NULL) { @@ -410,7 +409,6 @@ &xdg_output_listener, output); } - wl_display_dispatch(state.display); wl_display_roundtrip(state.display); } else { fprintf(stderr, "warning: zxdg_output_manager_v1 isn't available, " @@ -502,7 +500,7 @@ stdout, jpeg_quality); break; #else - assert(false); + abort(); #endif } } else { @@ -519,7 +517,7 @@ surface, output_filepath, jpeg_quality); break; #else - assert(false); + abort(); #endif } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grim-1.3.1/meson.build new/grim-1.3.2/meson.build --- old/grim-1.3.1/meson.build 2020-07-21 20:11:14.000000000 +0200 +++ new/grim-1.3.2/meson.build 2021-04-17 19:41:14.000000000 +0200 @@ -1,7 +1,7 @@ project( 'grim', 'c', -version : '1.3.1', +version : '1.3.2', license : 'MIT', meson_version : '>=0.48.0', default_options : ['c_std=c11', 'warning_level=3', 'werror=true'] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grim-1.3.1/render.c new/grim-1.3.2/render.c --- old/grim-1.3.1/render.c 2020-07-21 20:11:14.000000000 +0200 +++ new/grim-1.3.2/render.c 2021-04-17 19:41:14.000000000 +0200 @@ -1,5 +1,6 @@ #include <assert.h> #include <stdio.h> +#include <stdlib.h> #include "buffer.h" #include "output-layout.h" @@ -36,7 +37,7 @@ fprintf(stderr, "unsupported format %d\n", buffer->format); return false; } - assert(false); + abort(); } static cairo_format_t get_cairo_format(enum wl_shm_format wl_fmt) { @@ -48,7 +49,7 @@ default: return CAIRO_FORMAT_INVALID; } - assert(false); + abort(); } cairo_surface_t *render(struct grim_state *state, struct grim_box *geometry, @@ -104,10 +105,11 @@ cairo_matrix_translate(&matrix, (double)output->geometry.width / 2, (double)output->geometry.height / 2); - cairo_matrix_rotate(&matrix, get_output_rotation(output->transform)); cairo_matrix_scale(&matrix, - (double)raw_output_width / output_width * output_flipped_x, + (double)raw_output_width / output_width, (double)raw_output_height / output_height * output_flipped_y); + cairo_matrix_rotate(&matrix, -get_output_rotation(output->transform)); + cairo_matrix_scale(&matrix, output_flipped_x, 1); cairo_matrix_translate(&matrix, -(double)output_width / 2, -(double)output_height / 2);