Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!ucbvax!bloom-beacon!rsfinn From: rsfinn@athena.mit.edu (Russell S. Finn) Newsgroups: comp.sys.mac.programmer Subject: Re: Detecting Color Quickdraw Message-ID: <1990Nov2.234617.25519@athena.mit.edu> Date: 2 Nov 90 23:46:17 GMT References: <1990Nov1.070907.2179@Neon.Stanford.EDU> Sender: daemon@athena.mit.edu (Mr Background) Organization: Massachusetts Institute of Technology Lines: 20 Short code fragment in C to test for the presence of Color QuickDraw: SysEnvRec gEnv; SysEnvirons (1, &gEnv); if (gEnv.hasColorQD) /* it's present */; else /* it's not present */; SysEnvirons will tell you other cool things, too, like whether or not the machine you're on has an FPU (more important to check now than ever before; my new IIsi won't have one for a while yet...). Refer to Inside Macintosh, Volume V, page {something really small, like 4}. Disclaimer: I haven't actually *compiled* this, mind you... -- Russ rsfinn@{athena,lcs}.mit.edu