Commit fee33a54 authored by Tor Lillqvist's avatar Tor Lillqvist

bpl was set wrong for bitmaps, should be multiple of 4. (Thanks to Hans

	* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
 	bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
 	finding this.)
parent b385831d
Mon Jun 28 10:03:07 1999 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
finding this.)
1999-06-01 Jose H Mercado <jmercado@mit.edu>
* gtk+.spec.in: Corrected some typos in files section.
......
Mon Jun 28 10:03:07 1999 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
finding this.)
1999-06-01 Jose H Mercado <jmercado@mit.edu>
* gtk+.spec.in: Corrected some typos in files section.
......
Mon Jun 28 10:03:07 1999 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
finding this.)
1999-06-01 Jose H Mercado <jmercado@mit.edu>
* gtk+.spec.in: Corrected some typos in files section.
......
Mon Jun 28 10:03:07 1999 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
finding this.)
1999-06-01 Jose H Mercado <jmercado@mit.edu>
* gtk+.spec.in: Corrected some typos in files section.
......
Mon Jun 28 10:03:07 1999 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
finding this.)
1999-06-01 Jose H Mercado <jmercado@mit.edu>
* gtk+.spec.in: Corrected some typos in files section.
......
Mon Jun 28 10:03:07 1999 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
finding this.)
1999-06-01 Jose H Mercado <jmercado@mit.edu>
* gtk+.spec.in: Corrected some typos in files section.
......
Mon Jun 28 10:03:07 1999 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
finding this.)
1999-06-01 Jose H Mercado <jmercado@mit.edu>
* gtk+.spec.in: Corrected some typos in files section.
......
......@@ -522,7 +522,7 @@ gdk_image_get (GdkWindow *window,
}
image->byte_order = GDK_LSB_FIRST;
if (image->depth == 1)
image->bpl = (width - 1)/8 + 1;
image->bpl = ((width - 1)/32 + 1)*4;
else
image->bpl = ((width*image->bpp - 1)/4 + 1)*4;
......
......@@ -522,7 +522,7 @@ gdk_image_get (GdkWindow *window,
}
image->byte_order = GDK_LSB_FIRST;
if (image->depth == 1)
image->bpl = (width - 1)/8 + 1;
image->bpl = ((width - 1)/32 + 1)*4;
else
image->bpl = ((width*image->bpp - 1)/4 + 1)*4;
......
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