Path: utzoo!utgpu!watmath!clyde!att!rutgers!mit-eddie!uw-beaver!rice!sun-spots-request
From: mit-amt!turk@mit-amt.media.mit.edu (Matthew Turk)
Newsgroups: comp.sys.sun
Subject: Screen depth -- really, WHICH SCREEN?
Message-ID: <3317@mit-amt>
Date: 9 Dec 88 08:05:06 GMT
Sender: usenet@rice.edu
Organization: Rice University, Houston, Texas
Lines: 16
Approved: Sun-Spots@rice.edu
Original-Date: 23 Nov 88 22:53:12 GMT
X-Sun-Spots-Digest: Volume 7, Issue 38, message 7 of 14

A few people have responded to my post about finding the screen depth --
and thanks, by the way -- but they didn't really read the question!!  So
let me ask it again, if you all don't mind.

I don't just want to know the screen depth of /dev/fb -- I want to know
the screen depth of -> the screen I am typing to <-.  Since my Sun
currently has two monitors attached (one is /dev/fb and the other is
/dev/cgfour0), what I really need is a way to find out which device I
happen to be using.  (I have suntools running on both screens and can move
back and forth just my moving the mouse over -- "adjacentscreens" allows
this.)  So if I had a routine that returns "/dev/fb" or "/dev/cgfour0", I
could easily find the depth.

Any suggestions?  Thanks in advance...

	Matthew