Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: CDEF question Message-ID: <33282@ucbvax.BERKELEY.EDU> Date: 18 Dec 89 16:18:08 GMT References: <7470@hubcap.clemson.edu> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Organization: School of Education, UC-Berkeley Lines: 18 In article <7470@hubcap.clemson.edu> mikeoro@hubcap.clemson.edu (Michael K O'Rourke) writes: >Is it very advantageous to reset the ClipRgn to be the area of my control when >it redraws itself? Will that actually speed things up? If so, is it even >better to set the clipRgn to the intersection of the old clip and my control? The fastest thing is to leave the clipRgn alone. If you have to change it, because your CDEF would draw out of bounds otherwise, you must change it to the intersection of its old value and what you want. If the CDEF just stores into the clipRgn, it will screw up the caller -- the reason the caller set a small cliprgn is because the caller wanted to restrict where your CDEF could draw. Naturally, no matter what changes the CDEF makes to the clipRgn, it must restore it to what it was on entry. > The mac is a detour in the inevitable march of mediocre computers. > drs@bnlux0.bnl.gov (David R. Stampf) --- David Phillip Oster -master of the ad hoc odd hack. Arpa: oster@dewey.soe.berkeley.edu Uucp: {uwvax,decvax}!ucbvax!oster%dewey.soe.berkeley.edu