Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: mouse@lightning.mcrcim.mcgill.EDU (der Mouse) Newsgroups: comp.windows.x Subject: Re: How can I get the display resolution? Message-ID: <9103260342.AA04281@lightning.McRCIM.McGill.EDU> Date: 26 Mar 91 03:42:04 GMT Sender: tytso@athena.mit.edu (Theodore Y. Ts'o) Organization: The Internet Lines: 20 > The solution you propose is a bit of turning the problem around. The > HeightMMOfScreen(screen) call references the screen resolution as > defined within the X server. That's as close as you can come with X operations. > At least in the Sun Server implementation, this is is a hard-coded > constant (I believe somewhere in server/ddx/mfb/???), defined to be > 90 (pixels per inch). True. That is a misfeature in the Sun server, forced upon them by Sun failing to provide any way for programs to sense what sort of monitor the machine is connected to. The server simply does not have any way of determining whether it's connected to a 16", 19", or some other size monitor...except for the user telling it, for which a flag is provided. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu