summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@src.gnome.org>1999-06-28 07:06:01 +0000
committerTor Lillqvist <tml@src.gnome.org>1999-06-28 07:06:01 +0000
commitfee33a543d191ca93a2fed3ab38fb354524dd8d8 (patch)
tree688a7ff1b4a383d6905a148ef26a95b3b351161b
parentb385831d6501103d7b286690146be55537ae1a7d (diff)
downloadgtk+-fee33a543d191ca93a2fed3ab38fb354524dd8d8.tar.gz
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.)
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.pre-2-06
-rw-r--r--ChangeLog.pre-2-106
-rw-r--r--ChangeLog.pre-2-26
-rw-r--r--ChangeLog.pre-2-46
-rw-r--r--ChangeLog.pre-2-66
-rw-r--r--ChangeLog.pre-2-86
-rw-r--r--gdk/win32/gdkimage-win32.c2
-rw-r--r--gdk/win32/gdkimage.c2
9 files changed, 44 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 48708f795c..b017826940 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 48708f795c..b017826940 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -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.
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 48708f795c..b017826940 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -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.
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 48708f795c..b017826940 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -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.
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 48708f795c..b017826940 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -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.
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 48708f795c..b017826940 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -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.
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 48708f795c..b017826940 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -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.
diff --git a/gdk/win32/gdkimage-win32.c b/gdk/win32/gdkimage-win32.c
index 8b8c4190ea..790d385297 100644
--- a/gdk/win32/gdkimage-win32.c
+++ b/gdk/win32/gdkimage-win32.c
@@ -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;
diff --git a/gdk/win32/gdkimage.c b/gdk/win32/gdkimage.c
index 8b8c4190ea..790d385297 100644
--- a/gdk/win32/gdkimage.c
+++ b/gdk/win32/gdkimage.c
@@ -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;