Commit e00c0594 authored by MET 1998  Eckehard Berns's avatar MET 1998 Eckehard Berns Committed by Eckehard Berns
Browse files

fixed a bug for mode GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit

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.
parent 75a84054
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
......
......@@ -1405,9 +1405,9 @@ gdk_color_context_query_colors (GdkColorContext *cc,
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
{
......
......@@ -1405,9 +1405,9 @@ gdk_color_context_query_colors (GdkColorContext *cc,
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
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment