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.
This commit is contained in:
committed by
Eckehard Berns
parent
75a8405430
commit
e00c0594a3
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
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
|
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
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
|
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
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
|
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
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
|
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
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
|
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
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
|
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
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
|
* 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)
|
if (cc->clut == NULL)
|
||||||
for (i = 0, tc = colors; i < num_colors; i++, tc++)
|
for (i = 0, tc = colors; i < num_colors; i++, tc++)
|
||||||
{
|
{
|
||||||
tc->red = (tc->pixel & cc->masks.red) * 65535 / cc->masks.red;
|
tc->red = ((tc->pixel & cc->masks.red) >> cc->shifts.red) << (16 - cc->bits.red);
|
||||||
tc->green = (tc->pixel & cc->masks.green) * 65535 / cc->masks.green;
|
tc->green = ((tc->pixel & cc->masks.green) >> cc->shifts.green) << (16 - cc->bits.green);
|
||||||
tc->blue = (tc->pixel & cc->masks.blue) * 65535 / cc->masks.blue;
|
tc->blue = ((tc->pixel & cc->masks.blue) >> cc->shifts.blue) << (16 - cc->bits.blue);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1405,9 +1405,9 @@ gdk_color_context_query_colors (GdkColorContext *cc,
|
|||||||
if (cc->clut == NULL)
|
if (cc->clut == NULL)
|
||||||
for (i = 0, tc = colors; i < num_colors; i++, tc++)
|
for (i = 0, tc = colors; i < num_colors; i++, tc++)
|
||||||
{
|
{
|
||||||
tc->red = (tc->pixel & cc->masks.red) * 65535 / cc->masks.red;
|
tc->red = ((tc->pixel & cc->masks.red) >> cc->shifts.red) << (16 - cc->bits.red);
|
||||||
tc->green = (tc->pixel & cc->masks.green) * 65535 / cc->masks.green;
|
tc->green = ((tc->pixel & cc->masks.green) >> cc->shifts.green) << (16 - cc->bits.green);
|
||||||
tc->blue = (tc->pixel & cc->masks.blue) * 65535 / cc->masks.blue;
|
tc->blue = ((tc->pixel & cc->masks.blue) >> cc->shifts.blue) << (16 - cc->bits.blue);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user