Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!usc!orion.cf.uci.edu!uci-ics!ics.uci.edu!dbainbri From: dbainbri@ics.uci.edu (David Bainbridge) Newsgroups: comp.windows.x Subject: Is The Screen Color? Keywords: monochrome, color Message-ID: <18700@paris.ics.uci.edu> Date: 25 Jun 89 20:52:39 GMT Sender: news@paris.ics.uci.edu Reply-To: dbainbri@ics.uci.edu (David Bainbridge) Organization: University of California, Irvine - Dept of ICS Lines: 25 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. +---------------------------------------+-------------------------------------+ | | | | University of California, Irvine | dbainbri@ics.uci.edu | | | | +---------------------------------------+-------------------------------------+