Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!well!oster From: oster@well.sf.ca.us (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: How does one save/restore clipping? Message-ID: <22533@well.sf.ca.us> Date: 10 Jan 91 06:58:30 GMT References: <47697@apple.Apple.COM> <22461@well.sf.ca.us> <1991Jan6.225428.10958@Neon.Stanford.EDU> Organization: Whole Earth 'Lectronic Link, Sausalito, CA Lines: 18 In article <1991Jan6.225428.10958@Neon.Stanford.EDU> kaufman@Neon.Stanford.EDU (Marc T. Kaufman) writes: _>In article <22461@well.sf.ca.us> oster@well.sf.ca.us (David Phillip Oster) writes: _>.So that if the window is partially obscured by another, the visRgn will be _>.taken into account, by ClippedOff(). _> _>I am under the impression that all drawing is AUTOMATICALLY clipped to the _>visRgn. My preference is to set the outermost clip region to portRect, to _>keep it rectangular for faster checking. If visRgn is complex you may have _>to endure more complex checking (i.e. checking essentially the same region _>twice) when drawing in the visible area. _> The DRAWING is automaticvally clipped, but I want to avoid wasting the CPU time to call routines that won't do anything. -- -- David Phillip Oster - At least the government doesn't make death worse. -- oster@well.sf.ca.us = {backbone}!well!oster