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: <9103250507.AA07479@lightning.McRCIM.McGill.EDU> Date: 25 Mar 91 05:07:17 GMT Sender: tytso@athena.mit.edu (Theodore Y. Ts'o) Organization: The Internet Lines: 36 > Is there a way that I can get the resolution of the display? The Xlib document says, among other things, WidthOfScreen(screen) int XWidthOfScreen(screen) Screen *screen; Both return the width of the specified screen in pixels. HeightOfScreen(screen) int XHeightOfScreen(screen) Screen *screen; Both return the height of the specified screen in pixels. WidthMMOfScreen(screen) int XWidthMMOfScreen(screen) Screen *screen; Both return the width of the specified screen in millimeters. HeightMMOfScreen(screen) int XHeightMMOfScreen(screen) Screen *screen; Both return the height of the specified screen in millimeters. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu