Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!sun-barr!rutgers!mephisto!prism!cc100aa From: cc100aa@prism.gatech.EDU (Ray Spalding) Newsgroups: comp.sys.mac.programmer Subject: Re: Finding the size of the screen under Multifinder/Color QD Message-ID: <4662@hydra.gatech.EDU> Date: 8 Jan 90 14:54:22 GMT References: <10139@saturn.ucsc.edu> <9429@hoptoad.uucp> <1102@urbana.mcd.mot.com> <10164@saturn.ucsc.edu> <9490@hoptoad.uucp> <1990Jan5.234652.4485@santra.uucp> <9530@hoptoad.uucp> Reply-To: cc100aa@prism.gatech.EDU (Ray Spalding) Organization: Georgia Institute of Technology Lines: 18 In article <9530@hoptoad.uucp> tim@hoptoad.UUCP (Tim Maroney) writes: >Nope. The OpenPort strategy doesn't work on color systems, at least >not in the simple way you seem to be suggesting. If you just look at >port.portBits.bounds, you'll be looking at something weird (a handle >followed by two integers) on color systems. My understanding is that if you use OpenPort() on a color system, you still get an old-style GrafPort. You'd need to use OpenCPort() to get a new-style CGrafPort. You don't need to check for a CGrafPort if you know you're dealing with a GrafPort. -- Ray Spalding, Office of Computing Services Georgia Institute of Technology, Atlanta Georgia, 30332-0275 uucp: ...!{allegra,amd,hplabs,ut-ngp}!gatech!prism!cc100aa Internet: cc100aa@prism.gatech.edu