Re: ABI rules on accessing colormap->colors?
- From: Peter Zelezny <pzel dodo com au>
- To: gtk-app-devel-list gnome org
- Cc: Owen Taylor <otaylor redhat com>
- Subject: Re: ABI rules on accessing colormap->colors?
- Date: Mon, 15 Sep 2003 23:18:03 +1000
On Mon, 15 Sep 2003 07:51:58 -0400
Owen Taylor <otaylor redhat com> wrote:
Basically, I'm doing a:
gdk_colormap_alloc_color (cmap, color, TRUE, TRUE);
But on a most 8-bit PseudoColor displays, it fails, since the cmap is
often full. So I fall back to traversing the cmap->colors to see which is
the closest colour available. It gives pretty good results.
I tried calling gdk_colormap_alloc_color() with the "best_match" arg TRUE,
hoping this would be done for me, but it is not.
Well, why don't you debug that? If you're right and there is a bug
there, then we can discuss workarounds, once we know what that bug is.
I didn't realize it could be a bug, I don't know much about Visuals.
Here's a testcase: http://213.197.30.23/cmap.c
Comments at the top should give anyone an easy way to reproduce it. When I
run the program, it fails everytime. No problem in TrueColor however.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]