Subject: Re: Hypercube in lisp (newbie)
From: rpw3@rpw3.org (Rob Warnock)
Date: Thu, 25 Aug 2005 04:42:46 -0500
Newsgroups: comp.lang.lisp
Message-ID: <Rd6dnfpsbbALD5DeRVn-ug@speakeasy.net>
Ingvar  <ingvar@hexapodia.net> wrote:
+---------------
| "LuisGLopez" <luis.g.lopez@gmail.com> writes:
| > Now a beautiful window pops up immediately, but no polygon is drawn,
| > although I get no error from   (draw-polygon (list (point 20 120)
| > (point 120 220) (point 220 120) (point 120 20))))
...
| When you play around interactively, you want to issue calls to
| XLIB:DISPLAY-FORCE-OUTPUT occasionally.  In a drawing-intensive
| program, it's better to call taht function only when you're about to
| wait for X events.
+---------------

Note that Pascal's code *does* have a call to XLIB:DISPLAY-FORCE-OUTPUT
at the end of the DRAW-POLYGON routine.

[In a parallel reply, I speculated that perhaps he was being surprised
because exposure events weren't being handled...]


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607