Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wasatch!cs.utexas.edu!uunet!sco!jamesm From: jamesm@sco.COM (James M. Moore) Newsgroups: comp.sys.mac.programmer Subject: Re: Help with LSC 3.0 CopyBits Message-ID: <2852@viscous.sco.COM> Date: 3 May 89 20:47:04 GMT References: <7731@zodiac.UUCP> <741@rocksanne.UUCP> Reply-To: jamesm@sco.COM (James M. Moore) Organization: The Santa Cruz Operation, Inc. Lines: 18 In article <741@rocksanne.UUCP> rainero@prism.UUCP (Emil Rainero) writes: >I also recall reading that CopyBits wants at most 32K of data. (might want >to read the IM V.1 section on CopyBits. Actually, it says that the Quickdraw convention is to not use more than 3k of stack space. I presume that's to avoid possible stack overflows. My question: how does one find out what the bottom of the stack should be? Seems like you could just check A7 against that number, and if there's room go ahead and copy more than 3k. I've been copying the entire screen in one pass, and haven't noticed any problems (about 18k per copybits call). -- ** James Moore ** ** Internet: jamesm@sco.com ** ** uucp: {decvax!microsoft | uunet | ucbvax!ucscc | amd}!sco!jamesm ** ** Nil clu no suim ar bith ag SCO ceard a bhfuil me ag scriobh anois. **