Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Jun P. Furuse" <Jun.Furuse@inria.fr>
To: caml-list@inria.fr
Cc: "Marc Rouaix" <rouaix@my-dejanews.com>
Subject: Re: graphics (color query code for truecolor displays)
Date: Wed, 07 Apr 1999 14:30:24 +0200	[thread overview]
Message-ID: <199904071230.OAA01067@pernand.inria.fr> (raw)
In-Reply-To: Your message of Tue, 06 Apr 1999 00:54:23 -0800. <MEELMNGPLBOAAAAA@my-dejanews.com>

Hi,

> I was excited to hear that the 2.02 graphics library
> had better support for 24 bit displays, but I can't
> get it to work properly.  Ideally, I'd like something like
> 
> set_color (rgb x y z)
> 
> to just work right, no matter how many times I call it. 
> The support in 2.02 looks like it only works for images
> (?), and even that doesn't seem to work properly on my
> machine; ocaml seems to think I have an eight bit
> display.  I've looked at the graphics code a bit, but
> I'm no X genius.

I am the one who added "fast colour look up code" in graph library.
Instead of the older version which communicates between X server 
for each colour query (and it is very inefficient), I intended to
compute its "colour index" in the client side. But this colour index
computation method is highly architecture dependent of X servers 
(bit order, colour model, bit depth, etc), and not well documented. 
We checked this modification work correctly for XFree86 servers with
16 bits depth and some DEC Alpha servers, but the code does not
support the all possibilities of architectures, I am afraid.

To do quick repair, use the patch following. This just disables
the new modification. Each color query creates communication between X
server and it REALLY slows the full color graphics programs, but at
least, it works correctly.

Regards,

-----------------------------------------------------------------------
Jun P. Furuse 					 Jun.Furuse@inria.fr
  INRIA
    Institut National de Recherche en Informatique et en Automatique




      reply	other threads:[~1999-04-07 16:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-06  8:54 graphics Marc Rouaix
1999-04-07 12:30 ` Jun P. Furuse [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199904071230.OAA01067@pernand.inria.fr \
    --to=jun.furuse@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=rouaix@my-dejanews.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox