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.)
This commit is contained in:
Tor Lillqvist 1999-06-28 07:06:01 +00:00
parent b385831d65
commit fee33a543d
9 changed files with 44 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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.

View File

@ -1,3 +1,9 @@
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.

View File

@ -1,3 +1,9 @@
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.

View File

@ -1,3 +1,9 @@
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.

View File

@ -1,3 +1,9 @@
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.

View File

@ -1,3 +1,9 @@
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.

View File

@ -1,3 +1,9 @@
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.

View File

@ -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;

View File

@ -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;