mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
rowstrides are gsize, not int
gdk-pixbuf got that wrong, don't repeat that mistake.
This commit is contained in:
parent
707c63c6f9
commit
ef3c515cf1
@ -395,7 +395,7 @@ gdk_texture_new_for_pixbuf (GdkPixbuf *pixbuf)
|
|||||||
|
|
||||||
bytes = g_bytes_new_with_free_func (gdk_pixbuf_get_pixels (pixbuf),
|
bytes = g_bytes_new_with_free_func (gdk_pixbuf_get_pixels (pixbuf),
|
||||||
gdk_pixbuf_get_height (pixbuf)
|
gdk_pixbuf_get_height (pixbuf)
|
||||||
* gdk_pixbuf_get_rowstride (pixbuf),
|
* (gsize) gdk_pixbuf_get_rowstride (pixbuf),
|
||||||
g_object_unref,
|
g_object_unref,
|
||||||
g_object_ref (pixbuf));
|
g_object_ref (pixbuf));
|
||||||
texture = gdk_memory_texture_new (gdk_pixbuf_get_width (pixbuf),
|
texture = gdk_memory_texture_new (gdk_pixbuf_get_width (pixbuf),
|
||||||
|
@ -284,7 +284,8 @@ extract_plane (GdkPixbuf *src,
|
|||||||
int to_plane)
|
int to_plane)
|
||||||
{
|
{
|
||||||
guchar *src_data, *dst_data;
|
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;
|
guchar *src_row, *dst_row;
|
||||||
int x, y;
|
int x, y;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user