Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hao!boulder!sunybcs!bingvaxu!leah!itsgw!imagine!pawl21.pawl.rpi.edu!jesup From: jesup@pawl21.pawl.rpi.edu (Randell E. Jesup) Newsgroups: comp.sys.amiga Subject: Re: Clipping Message-ID: <386@imagine.PAWL.RPI.EDU> Date: 18 Feb 88 07:06:54 GMT References: <658@sandino.quintus.UUCP> Sender: news@imagine.PAWL.RPI.EDU Reply-To: beowulf!lunge!jesup@steinmetz.UUCP Organization: RPI Public Access Workstation Lab - Troy, NY Lines: 16 Keywords: windows clipping rastport In article <658@sandino.quintus.UUCP> pds@quintus.UUCP (Peter Schachte) writes: >A question for all you Gurus (sorry if this is an old, stale question): >what is the blessed way to clip stuff to the inside of a window? I >don't want to waste the space of a SMART_REFRESH or GIMME_ZERO_ZERO >window, I'm using SIMPLE_REFRESH. Ah! One of the lesser-known new functions in 1.2 Intuition is the call InstallClipRegion(). There is (I think) an example on a fish disk done by either RJ or Jim Mackraz of this, and it is documented in the 1.2 AutoDocs (mentioned on page 68 of the Enhancer booklet). This does EXACTLY what you are looking for, without the GZZ overhead (you can even get quite fancy with it). // Randell Jesup Lunge Software Development // Dedicated Amiga Programmer 13 Frear Ave, Troy, NY 12180 \\// beowulf!lunge!jesup@steinmetz.UUCP (518) 272-2942 \/ (uunet!steinmetz!beowulf!lunge!jesup) BIX: rjesup