From: Benjamin Otte Date: Wed, 15 Mar 2023 00:46:19 +0000 (+0100) Subject: rowstrides are gsize, not int X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~544^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ef3c515c;p=gtk4.git rowstrides are gsize, not int gdk-pixbuf got that wrong, don't repeat that mistake. --- diff --git a/gdk/gdktexture.c b/gdk/gdktexture.c index 007901ffe8..41cb8ea11a 100644 --- a/gdk/gdktexture.c +++ b/gdk/gdktexture.c @@ -395,7 +395,7 @@ gdk_texture_new_for_pixbuf (GdkPixbuf *pixbuf) bytes = g_bytes_new_with_free_func (gdk_pixbuf_get_pixels (pixbuf), gdk_pixbuf_get_height (pixbuf) - * gdk_pixbuf_get_rowstride (pixbuf), + * (gsize) gdk_pixbuf_get_rowstride (pixbuf), g_object_unref, g_object_ref (pixbuf)); texture = gdk_memory_texture_new (gdk_pixbuf_get_width (pixbuf), diff --git a/gtk/gdkpixbufutils.c b/gtk/gdkpixbufutils.c index 6b29128376..8d049311ac 100644 --- a/gtk/gdkpixbufutils.c +++ b/gtk/gdkpixbufutils.c @@ -284,7 +284,8 @@ extract_plane (GdkPixbuf *src, int to_plane) { guchar *src_data, *dst_data; - int width, height, src_stride, dst_stride; + int width, height; + gsize src_stride, dst_stride; guchar *src_row, *dst_row; int x, y;