+Sun Feb 22 00:20:12 MET 1998 Eckehard Berns <eb@berns.prima.de>
+
+ * gdk/gdkcc.c (gdk_color_context_query_colors): fixed a bug for mode
+ GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit mashine.
+
Sat Feb 21 12:06:11 1998 Scott Goehring <scott@poverty.bloomington.in.us>
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
+Sun Feb 22 00:20:12 MET 1998 Eckehard Berns <eb@berns.prima.de>
+
+ * gdk/gdkcc.c (gdk_color_context_query_colors): fixed a bug for mode
+ GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit mashine.
+
Sat Feb 21 12:06:11 1998 Scott Goehring <scott@poverty.bloomington.in.us>
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
+Sun Feb 22 00:20:12 MET 1998 Eckehard Berns <eb@berns.prima.de>
+
+ * gdk/gdkcc.c (gdk_color_context_query_colors): fixed a bug for mode
+ GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit mashine.
+
Sat Feb 21 12:06:11 1998 Scott Goehring <scott@poverty.bloomington.in.us>
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
+Sun Feb 22 00:20:12 MET 1998 Eckehard Berns <eb@berns.prima.de>
+
+ * gdk/gdkcc.c (gdk_color_context_query_colors): fixed a bug for mode
+ GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit mashine.
+
Sat Feb 21 12:06:11 1998 Scott Goehring <scott@poverty.bloomington.in.us>
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
+Sun Feb 22 00:20:12 MET 1998 Eckehard Berns <eb@berns.prima.de>
+
+ * gdk/gdkcc.c (gdk_color_context_query_colors): fixed a bug for mode
+ GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit mashine.
+
Sat Feb 21 12:06:11 1998 Scott Goehring <scott@poverty.bloomington.in.us>
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
+Sun Feb 22 00:20:12 MET 1998 Eckehard Berns <eb@berns.prima.de>
+
+ * gdk/gdkcc.c (gdk_color_context_query_colors): fixed a bug for mode
+ GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit mashine.
+
Sat Feb 21 12:06:11 1998 Scott Goehring <scott@poverty.bloomington.in.us>
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
+Sun Feb 22 00:20:12 MET 1998 Eckehard Berns <eb@berns.prima.de>
+
+ * gdk/gdkcc.c (gdk_color_context_query_colors): fixed a bug for mode
+ GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit mashine.
+
Sat Feb 21 12:06:11 1998 Scott Goehring <scott@poverty.bloomington.in.us>
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
if (cc->clut == NULL)
for (i = 0, tc = colors; i < num_colors; i++, tc++)
{
- tc->red = (tc->pixel & cc->masks.red) * 65535 / cc->masks.red;
- tc->green = (tc->pixel & cc->masks.green) * 65535 / cc->masks.green;
- tc->blue = (tc->pixel & cc->masks.blue) * 65535 / cc->masks.blue;
+ tc->red = ((tc->pixel & cc->masks.red) >> cc->shifts.red) << (16 - cc->bits.red);
+ tc->green = ((tc->pixel & cc->masks.green) >> cc->shifts.green) << (16 - cc->bits.green);
+ tc->blue = ((tc->pixel & cc->masks.blue) >> cc->shifts.blue) << (16 - cc->bits.blue);
}
else
{
if (cc->clut == NULL)
for (i = 0, tc = colors; i < num_colors; i++, tc++)
{
- tc->red = (tc->pixel & cc->masks.red) * 65535 / cc->masks.red;
- tc->green = (tc->pixel & cc->masks.green) * 65535 / cc->masks.green;
- tc->blue = (tc->pixel & cc->masks.blue) * 65535 / cc->masks.blue;
+ tc->red = ((tc->pixel & cc->masks.red) >> cc->shifts.red) << (16 - cc->bits.red);
+ tc->green = ((tc->pixel & cc->masks.green) >> cc->shifts.green) << (16 - cc->bits.green);
+ tc->blue = ((tc->pixel & cc->masks.blue) >> cc->shifts.blue) << (16 - cc->bits.blue);
}
else
{