Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!sdd.hp.com!decwrl!apple!stevec From: stevec@Apple.COM (Steve Christensen) Newsgroups: comp.sys.mac.programmer Subject: Re: Drawing in the menu bar (AGAIN) Message-ID: <9589@goofy.Apple.COM> Date: 6 Aug 90 16:40:11 GMT References: <9536@goofy.Apple.COM> <2900@isc-br.ISC-BR.COM> Organization: Apple Computer Inc., Cupertino, CA Lines: 28 In article <2900@isc-br.ISC-BR.COM> jimc@isc-br.ISC-BR.COM (Jim Cathey) writes: >In article <9536@goofy.Apple.COM> stevec@Apple.COM (Steve Christensen) writes: >>[...can't use QuickDraw in an interrupt handler, etc...] > >Well, that's a bit harsh isn't it? Althought QD _can_ call the Memory >Manager, it doesn't always do it. The things to avoid are opening and >closing ports (which manipulate clipping regions), text drawing (if the >font is unloaded), stretching versions of CopyBits (where it sucks up >stack space), and many of the calls that refer to regions. Small 1:1 >CopyBits, EraseRects, and the like should be just fine, shouldn't they? As I recall (not being a total QD guru myself), QD lives on regions even for little things like 1:1 CopyBits, lines, rects, etc., since it has to determine if what you're drawing is all inside the port or not (and clipping it if not). Remember that a port could have some bizarre [non-rectangular] clipRgn... steve -- ____________________________________________________________________ Steve Christensen Internet: stevec@goofy.apple.com Apple Computer, Inc. AppleLink: STEVEC 20525 Mariani Ave, MS 81-CS CompuServe: 76174,1712 Cupertino, CA 95014 "You just contradicted me." "No I didn't." ____________________________________________________________________