mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 23:00:08 +00:00
Fix also the other place where maskstride was calculated.
This commit is contained in:
parent
449f16b238
commit
90942c4fef
@ -683,11 +683,7 @@ pixbuf_to_hbitmaps_alpha_winxp (GdkPixbuf *pixbuf,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* MSDN says mask rows are aligned to "LONG" boundaries */
|
/* MSDN says mask rows are aligned to "LONG" boundaries */
|
||||||
maskstride = width / 8;
|
maskstride = (((width + 31) & ~31) >> 3);
|
||||||
if (maskstride % 4 != 0)
|
|
||||||
maskstride += 4 - (maskstride % 4);
|
|
||||||
if (maskstride < 4) /* one word minimum */
|
|
||||||
maskstride = 4;
|
|
||||||
|
|
||||||
indata = gdk_pixbuf_get_pixels (pixbuf);
|
indata = gdk_pixbuf_get_pixels (pixbuf);
|
||||||
rowstride = gdk_pixbuf_get_rowstride (pixbuf);
|
rowstride = gdk_pixbuf_get_rowstride (pixbuf);
|
||||||
|
Loading…
Reference in New Issue
Block a user