1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: correctmost <136447-correctmost@users.noreply.gitlab.gnome.org>
Date: Wed, 24 Sep 2025 13:25:36 -0400
Subject: bmp: Fix loading of bitmaps that have bottom-down pixel order
Fixes: 427b566796
Closes #271
Origin: https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/merge_requests/241
---
gdk-pixbuf/io-bmp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdk-pixbuf/io-bmp.c b/gdk-pixbuf/io-bmp.c
index 0eca48e..f1b68a5 100644
--- a/gdk-pixbuf/io-bmp.c
+++ b/gdk-pixbuf/io-bmp.c
@@ -129,7 +129,7 @@ static void DumpBIH(unsigned char *BIH)
struct headerpair {
guint32 size;
guint32 width;
- guint32 height;
+ gint32 height;
guint depth;
guint Negative; /* Negative = 1 -> top down BMP,
Negative = 0 -> bottom up BMP */
|