Path: utzoo!attcan!uunet!husc6!cs.utexas.edu!usc!orion.cf.uci.edu!uci-ics!ucla-cs!mara!minnie.cognet.ucla.edu!kennel From: kennel@minnie.cognet.ucla.edu (Matthew Kennel) Newsgroups: comp.windows.x Subject: Re: Is The Screen Color? Keywords: monochrome, color Message-ID: <74@mara.cognet.ucla.edu> Date: 29 Jun 89 22:42:17 GMT References: <18700@paris.ics.uci.edu> Sender: news@mara.cognet.ucla.edu Reply-To: kennel@minnie.cognet.ucla.edu.UUCP (Matthew Kennel) Distribution: na Organization: none Lines: 34 In article <18700@paris.ics.uci.edu> dbainbri@ics.uci.edu (David Bainbridge) writes: > > A while back someone asked about how to determine if the screen was >color or black and white. I found this in a book I have by O'Reilly and >Associates. > >#include < "Standard X Includes" > >int depth; >"Open Display, and get default screen" >depth = DisplayPlanes( display, screen ); >if ( depth == 1 ) > "Screen is monochrome" >else > "Screen is color" > >I haven't tested this, but I hope it works, I plan to use it. > This seems wrong, at least to me, just on general principles. The NeXT machine is monochrome (well, really "di-chrome" if you count black & white) but has more than one display plane. Or by "color" do you include various shades of grey? But I still think there's a difference. >| University of California, Irvine | dbainbri@ics.uci.edu | Matt Kennel kennel@cognet.ucla.edu