Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!agate!web-1d.berkeley.edu!c60c-1ea From: c60c-1ea@web-1d.berkeley.edu (Yen Yuanchi Hsieh) Newsgroups: comp.sys.amiga.tech Subject: Re: ClipRect help wanted Summary: Aack! Keywords: no, no, try this Message-ID: <20945@agate.BERKELEY.EDU> Date: 27 Feb 89 18:47:54 GMT References: <5379@abo.fi> <911@applix.UUCP> Sender: usenet@agate.BERKELEY.EDU Organization: University of California, Berkeley Lines: 19 >Finally, at cleanup time: > > DisposeRegion(region); > InstallClipRegion(window->RPort->Layer, (struct Region *) NULL); ** Please, don't DisposeRegion BEFORE it's been removed from it's Layer, that's asking for trouble. > CloseLibrary(LayersBase); > >-scott Remember that clipping=slow graphics rendering speeds. I have found it useful to clip on graphic demand, that way Intuition runs at normal non-snail speeds when I'm not drawing Icons. Remember to trap and handle window-resizing if you're going to keep a static clipping rectangle hanging around. David Navas, hiding at c60c-1ea@WEB.Berkeley.Edu