Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!apple!AppleLink.Apple.Com!Greg From: Greg@AppleLink.Apple.Com (Greggy) Newsgroups: comp.sys.mac.programmer Subject: Re: Slightly more elaborate offscreen bitmap prob. Message-ID: <3101@internal.Apple.COM> Date: 25 Jul 89 23:33:11 GMT Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 26 References:<14324@swan.ulowell.edu> <1240@uvm-gen.UUCP> In article <1240@uvm-gen.UUCP> chaffee@uvm-gen.UUCP (Alex D. Chaffee,,,6581273) writes: > If I remember right, Inside Mac (I, p.149) is wrong; the default ClipRgn is > set to the screen. Try putting a ClipRect(&meterRect) in your creation code. > For good measure, also do RectRgn(...->visRgn, &meterRect). Well, you don't remember right. Inside Mac is correct, the clipRgn is set to a very large area. It's the visRgn that is set to the screen (as stated in the OpenPort description on Vol. I, p. 163-4). You only need to change the visRgn for things to behave properly. A side note, however: set the clip down too, so picture recording and playback don't exhibit unexpected behavior. Having a wide open clip rgn often results in overflow during scaling on playback. The result is an empty clip rgn and nothing gets drawn! (see. TechNote #59) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Greg Marriott + AppleLink: Greg + + Just Some Guy + + + "My phone is always busy" + Internet: Greg@AppleLink.Apple.Com + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Apple Computer, Inc. + + 20525 Mariani Ave, MS-46z, Cupertino, CA 95014 + + (408)974-busy + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++