summaryrefslogtreecommitdiff
path: root/gdk/gdkpixmap.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-12-06 22:56:26 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-12-06 22:56:26 +0000
commita8d58a409e0d7f94eb1ea6c688f8288dd5590d5c (patch)
tree0ea3f6ed4982bbad48a5372cbd5d4118c3f69b37 /gdk/gdkpixmap.c
parent17bbbde74ae114c629f6ce573a667e60c613bb3e (diff)
downloadgtk+-a8d58a409e0d7f94eb1ea6c688f8288dd5590d5c.tar.gz
Fix incorrect masks in PACKED_COLOR definition. (#99795, John Finlay)
Fri Dec 6 17:50:57 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkpixmap.c (PACKED_COLOR): Fix incorrect masks in PACKED_COLOR definition. (#99795, John Finlay)
Diffstat (limited to 'gdk/gdkpixmap.c')
-rw-r--r--gdk/gdkpixmap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk/gdkpixmap.c b/gdk/gdkpixmap.c
index 259d568d22..d73647fbe0 100644
--- a/gdk/gdkpixmap.c
+++ b/gdk/gdkpixmap.c
@@ -496,7 +496,9 @@ make_solid_mask (GdkScreen *screen, gint width, gint height)
return bitmap;
}
-#define PACKED_COLOR(c) ((((c)->red & 0xff) << 8) | ((c)->green & 0xff) | ((c)->blue >> 8))
+#define PACKED_COLOR(c) ((((c)->red & 0xff00) << 8) | \
+ ((c)->green & 0xff00) | \
+ ((c)->blue >> 8))
static GdkPixmap *
gdk_pixmap_colormap_new_from_pixbuf (GdkColormap *colormap,