Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!oliveb!amiga!boing!dale From: dale@boing.UUCP (Dale Luck) Newsgroups: comp.sys.amiga.tech Subject: Re: ClipRect help wanted Message-ID: <645@boing.UUCP> Date: 27 Feb 89 00:34:51 GMT References: <5379@abo.fi> <911@applix.UUCP> Reply-To: dale@boing.UUCP (Dale Luck) Organization: Boing, Milpitas, Ca. Lines: 25 In article <911@applix.UUCP> scott@applix.UUCP (Scott Evernden) writes: Unless The code is broke somewhere that we don't know InstallClipRegion returns a ptr to the original ClipRegion. It should be restored. struct Region * OldRegion; > ClearRegion(region); > OrRectRegion(region, &rect); > InstallClipRegion(window->RPort->Layer, region); OldRegion = InstallClipRegion(window->RPort->Layer, region); > >Finally, at cleanup time: > > InstallClipRegion(window->RPort->Layer, (struct Region *) NULL); InstallClipRegion(window->RPort->Layer, OldRegion ); >-scott -- Dale Luck GfxBase/Boing, Inc. {uunet!cbmvax|pyramid}!amiga!boing!dale