From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA13973 for caml-redistribution; Wed, 7 Apr 1999 18:57:23 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA30991 for ; Wed, 7 Apr 1999 14:30:30 +0200 (MET DST) Received: from pernand.inria.fr (pernand.inria.fr [128.93.8.58]) by concorde.inria.fr (8.8.7/8.8.7) with ESMTP id OAA12375; Wed, 7 Apr 1999 14:30:26 +0200 (MET DST) Received: from localhost (furuse@localhost) by pernand.inria.fr (8.6.10/8.6.6) with SMTP id OAA01067; Wed, 7 Apr 1999 14:30:24 +0200 Message-Id: <199904071230.OAA01067@pernand.inria.fr> X-Authentication-Warning: pernand.inria.fr: Host localhost didn't use HELO protocol To: caml-list@inria.fr Cc: "Marc Rouaix" Subject: Re: graphics (color query code for truecolor displays) In-reply-to: Your message of Tue, 06 Apr 1999 00:54:23 -0800. From: "Jun P. Furuse" Date: Wed, 07 Apr 1999 14:30:24 +0200 Sender: weis 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