commons@Sunburn.Stanford.EDU (Peter Commons) (11/01/90)
Does anyone have a simple straightforward way of telling whether or not a machine has color quickdraw? A short C code fragment would be great. Thanks in advance. -- |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | Peter Commons "Zut, alors! I have meesed one!!!" | | commons@cs.stanford.edu | | Computer Science Department, Stanford University |
rsfinn@athena.mit.edu (Russell S. Finn) (11/03/90)
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