🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #11603

Re: ClipRect help wanted

#11603
From: Dale Luck
Date: Mon, 27 Feb 1989 00:34
25 lines
1088 bytes
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
Technical Details
Message-ID: <645@boing.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!oliveb!amiga!boing!dale
References: <5379@abo.fi> <911@applix.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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