zathura: update to 0.4.9.

This commit is contained in:
lemmi 2022-02-15 12:21:13 +01:00
parent f8e1db9a95
commit a63e51ca53
2 changed files with 2 additions and 42 deletions

View file

@ -1,40 +0,0 @@
Taken from upstream
https://git.pwmt.org/pwmt/zathura/-/commit/2713de2f6c810f5f0be3c179944867b5b07ddaed
with a small correction
diff --git a/zathura/utils.c b/zathura/utils.c
index b4b058f..35abd6b 100644
--- a/zathura/utils.c
+++ b/zathura/utils.c
@@ -401,7 +401,7 @@ rectangle_to_points(void* vrect, void* vlist) {
static void
append_unique_uint(girara_list_t* list, const unsigned int v) {
- double* p = g_try_malloc(sizeof(v));
+ unsigned int* p = g_try_malloc(sizeof *p);
if (p == NULL) {
return;
}
@@ -433,16 +433,16 @@ cut_rectangle(const zathura_rectangle_t* rect, girara_list_t* points, girara_lis
GIRARA_LIST_FOREACH_END(points, zathura_point_t*, i_pt, pt);
double x = ufloor(rect->x1);
- GIRARA_LIST_FOREACH(xs, const double*, ix, cx)
+ GIRARA_LIST_FOREACH(xs, const unsigned int*, ix, cx)
double y = ufloor(rect->y1);
- GIRARA_LIST_FOREACH(ys, const double*, iy, cy)
+ GIRARA_LIST_FOREACH(ys, const unsigned int*, iy, cy)
zathura_rectangle_t* r = g_try_malloc(sizeof(zathura_rectangle_t));
*r = (zathura_rectangle_t) {x, y, *cx, *cy};
y = *cy;
girara_list_append_unique(rectangles, cmp_rectangle, r);
- GIRARA_LIST_FOREACH_END(ys, const double*, iy, cy);
+ GIRARA_LIST_FOREACH_END(ys, const unsigned int*, iy, cy);
x = *cx;
- GIRARA_LIST_FOREACH_END(xs, const double*, ix, cx);
+ GIRARA_LIST_FOREACH_END(xs, const unsigned int*, ix, cx);
girara_list_free(xs);
girara_list_free(ys);
--
2.26.2

View file

@ -1,6 +1,6 @@
# Template file for 'zathura'
pkgname=zathura
version=0.4.8
version=0.4.9
revision=1
build_style=meson
configure_args="-Dsynctex=enabled"
@ -14,7 +14,7 @@ maintainer="lemmi <lemmi@nerd2nerd.org>"
license="Zlib"
homepage="https://pwmt.org/projects/zathura"
distfiles="${homepage}/download/zathura-${version}.tar.xz"
checksum=b1aaa8b61d150b092ac9e312cbbf87279ecd66bd37b8c63c994e895843f520db
checksum=fc30c42cd660d993bce8758e22e4ba8078761d51f1e29494e7a0d37a8a3e5e57
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -Dtests=enabled"