how to programmatically determine screen resolution & color depth

how to programmatically determine screen resolution & color depth

Post by Hans Hor » Fri, 15 Oct 2004 04:50:08


Group,

is there a way from w/i an X11 app to programmatically determine screen
resolution and/or color depth at runtime ?

thx a bunch,
H.
 
 
 

how to programmatically determine screen resolution & color depth

Post by Ken Le » Fri, 15 Oct 2004 15:31:14


@newssvr14.news.prodigy.com:

Look at the Xlib display and screen information macros. Note that some
displays can support multiple depths, sometimes simultaneously. You can find
these with the Xlib visual type functions.

Ken Lee, http://www.yqcomputer.com/

 
 
 

how to programmatically determine screen resolution & color depth

Post by ralp » Sat, 16 Oct 2004 02:34:09

Hi Hans,


There's lots. See the source of xdpyinfo(1).

Cheers,

--
Ralph Corderoy. http://www.yqcomputer.com/ ://troff.org/