From: Stalkern 2 Reply-To: stalkern2 at tin.it To: lablgtk at kaba.or.jp Subject: Re: Ocamlearn update: Redraw and animate with Lablgtk 1.2.x Date: Wed, 9 Jul 2003 10:39:11 +0200 References: <200307082104.27771.stalkern2 at tin.it> In-Reply-To: <200307082104.27771.stalkern2 at tin.it> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200307091039.11488.stalkern2 at tin.it> Il Tuesday 08 July 2003 21:04, Stalkern 2 ha scritto: [...] > http://www.connettivo.net/article.php3?id_article=50 Can anybody explain exactly why setting the clipping region in two steps gives the wanted result (fly with transparency + background redrawing upon exposure) ? See lines (* Hint given by Claude Marché; * book area to redraw with respect to the clipping area * that will be used by the animation function, * otherwise the clipping mask for the moving image would * only take care of the moving image *) let () = aDrawing#set_clip_rectangle aExposedArea in in the code sample provided online Is it because the definition of the clipping region is redefined somehow (how?) or rather because a union operation on clipping areas is performed by multiple definitions? T I A Ernesto