diff options
author | Tor Lillqvist <tml@src.gnome.org> | 2005-11-07 12:05:43 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-11-07 12:05:43 +0000 |
commit | 90942c4fefebb879a425547d1dd713b9c11bd9c5 (patch) | |
tree | 4711afcf4de74806b932bf0309662af9fcfaefd6 /gdk/win32 | |
parent | 449f16b2382e08f01e551dd5eeb3ec1e2d3f49f1 (diff) | |
download | gtk+-90942c4fefebb879a425547d1dd713b9c11bd9c5.tar.gz |
Fix also the other place where maskstride was calculated.
Diffstat (limited to 'gdk/win32')
-rw-r--r-- | gdk/win32/gdkcursor-win32.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gdk/win32/gdkcursor-win32.c b/gdk/win32/gdkcursor-win32.c index ea82597385..27bfd20c0c 100644 --- a/gdk/win32/gdkcursor-win32.c +++ b/gdk/win32/gdkcursor-win32.c @@ -683,11 +683,7 @@ pixbuf_to_hbitmaps_alpha_winxp (GdkPixbuf *pixbuf, } /* MSDN says mask rows are aligned to "LONG" boundaries */ - maskstride = width / 8; - if (maskstride % 4 != 0) - maskstride += 4 - (maskstride % 4); - if (maskstride < 4) /* one word minimum */ - maskstride = 4; + maskstride = (((width + 31) & ~31) >> 3); indata = gdk_pixbuf_get_pixels (pixbuf); rowstride = gdk_pixbuf_get_rowstride (pixbuf); |