Commit 90942c4f authored by Tor Lillqvist's avatar Tor Lillqvist
Browse files

Fix also the other place where maskstride was calculated.

parent 449f16b2
...@@ -683,11 +683,7 @@ pixbuf_to_hbitmaps_alpha_winxp (GdkPixbuf *pixbuf, ...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment