From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA01835; Fri, 10 Jan 2003 14:36:08 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 OAA01756 for ; Fri, 10 Jan 2003 14:36:07 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h0ADa4r05824; Fri, 10 Jan 2003 14:36:04 +0100 (MET) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA01716; Fri, 10 Jan 2003 14:36:04 +0100 (MET) Date: Fri, 10 Jan 2003 14:36:04 +0100 From: Xavier Leroy To: Sebastien Ailleret Cc: caml-list@inria.fr Subject: Re: [Caml-list] Problems using graphics Message-ID: <20030110143604.D31390@pauillac.inria.fr> References: <15900.35279.570966.373949@salgos.ailleret.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0i In-Reply-To: <15900.35279.570966.373949@salgos.ailleret.com>; from sebastien@ailleret.com on Wed, Jan 08, 2003 at 09:27:59PM +0100 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi Sébastien, > I'm writing a small problem using Graphics and encountered the > following problems : > > - Unix.sleep does not work in conjunction with Graphics. I found the > solution in the archive of the Caml List ( > http://caml.inria.fr/archives/200011/msg00096.html ), but i think > this point deserves a note in the documentation or in the FAQ. Fair enough. Perhaps a function Unix.really_sleep (that ignores signals) is in order. > - The name of a window can be changed only after a window is > opened. This is a trouble because some window managers use the name > of the window when it opens to decide its position, type of > frame... This means it is impossible to differentiate the behavior > of two different "Caml Graphics" windows. Good point. Should be easy to fix. > - "fill_rect x y w h" and "draw_rect x y w h" do not draw the same > rect. draw_rect is bigger and lower. In my opinion, fill_rect does > the right thing. In order to see the problem, try : Well, Caml calls the X Windows drawing primitives XDrawRectangle and XFillRectangle with exactly the same arguments. But that seems to run into an, hmmm, oddity of X Windows, described in colorful language in the "Unix Haters" handbook: http://www.molgen.mpg.de/~wwwutz/Unix_Haters/x-windows.html Guess we'll have to work around this one. - Xavier Leroy ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners