Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!jarthur!nntp-server.caltech.edu!tybalt.caltech.edu!toddpw From: toddpw@tybalt.caltech.edu (Todd P. Whitesel) Newsgroups: comp.sys.apple2 Subject: Re: offscreen grafports in Orca/Pascal Message-ID: <1990Aug10.154457.17376@laguna.ccsf.caltech.edu> Date: 10 Aug 90 15:44:57 GMT References: <3980@rex.cs.tulane.edu> <43826@apple.Apple.COM> Sender: news@laguna.ccsf.caltech.edu Organization: California Institute of Technology Lines: 15 dlyons@Apple.COM (David A. Lyons) writes: >In summary, you need to allocate memory for the off-screen pixel map, >open a new grafport by calling OpenPort on a 170-byte chunk of memory, >and use SetLocInfo to set up the locInfo record of your grafport to >refer to your pixel map. WHOA... is that 170 GUARANTEED or is there a better way to do it that doesn't require us to hard-code how big the grafport record should be? I loath hardwiring constants into my program and I prefer to avoid it whenever possible. Todd Whitesel toddpw @ tybalt.caltech.edu