mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
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:
parent
b385831d65
commit
fee33a543d
@ -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>
|
1999-06-01 Jose H Mercado <jmercado@mit.edu>
|
||||||
|
|
||||||
* gtk+.spec.in: Corrected some typos in files section.
|
* gtk+.spec.in: Corrected some typos in files section.
|
||||||
|
@ -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>
|
1999-06-01 Jose H Mercado <jmercado@mit.edu>
|
||||||
|
|
||||||
* gtk+.spec.in: Corrected some typos in files section.
|
* gtk+.spec.in: Corrected some typos in files section.
|
||||||
|
@ -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>
|
1999-06-01 Jose H Mercado <jmercado@mit.edu>
|
||||||
|
|
||||||
* gtk+.spec.in: Corrected some typos in files section.
|
* gtk+.spec.in: Corrected some typos in files section.
|
||||||
|
@ -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>
|
1999-06-01 Jose H Mercado <jmercado@mit.edu>
|
||||||
|
|
||||||
* gtk+.spec.in: Corrected some typos in files section.
|
* gtk+.spec.in: Corrected some typos in files section.
|
||||||
|
@ -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>
|
1999-06-01 Jose H Mercado <jmercado@mit.edu>
|
||||||
|
|
||||||
* gtk+.spec.in: Corrected some typos in files section.
|
* gtk+.spec.in: Corrected some typos in files section.
|
||||||
|
@ -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>
|
1999-06-01 Jose H Mercado <jmercado@mit.edu>
|
||||||
|
|
||||||
* gtk+.spec.in: Corrected some typos in files section.
|
* gtk+.spec.in: Corrected some typos in files section.
|
||||||
|
@ -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>
|
1999-06-01 Jose H Mercado <jmercado@mit.edu>
|
||||||
|
|
||||||
* gtk+.spec.in: Corrected some typos in files section.
|
* gtk+.spec.in: Corrected some typos in files section.
|
||||||
|
@ -522,7 +522,7 @@ gdk_image_get (GdkWindow *window,
|
|||||||
}
|
}
|
||||||
image->byte_order = GDK_LSB_FIRST;
|
image->byte_order = GDK_LSB_FIRST;
|
||||||
if (image->depth == 1)
|
if (image->depth == 1)
|
||||||
image->bpl = (width - 1)/8 + 1;
|
image->bpl = ((width - 1)/32 + 1)*4;
|
||||||
else
|
else
|
||||||
image->bpl = ((width*image->bpp - 1)/4 + 1)*4;
|
image->bpl = ((width*image->bpp - 1)/4 + 1)*4;
|
||||||
|
|
||||||
|
@ -522,7 +522,7 @@ gdk_image_get (GdkWindow *window,
|
|||||||
}
|
}
|
||||||
image->byte_order = GDK_LSB_FIRST;
|
image->byte_order = GDK_LSB_FIRST;
|
||||||
if (image->depth == 1)
|
if (image->depth == 1)
|
||||||
image->bpl = (width - 1)/8 + 1;
|
image->bpl = ((width - 1)/32 + 1)*4;
|
||||||
else
|
else
|
||||||
image->bpl = ((width*image->bpp - 1)/4 + 1)*4;
|
image->bpl = ((width*image->bpp - 1)/4 + 1)*4;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user