Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!crackers!m2c!wpi.WPI.EDU!maxine!daven From: daven@maxine.wpi (Dave Nedde) Newsgroups: comp.windows.x Subject: DisplayHeightMM accuracy? Message-ID: <1991May15.134203.22048@wpi.WPI.EDU> Date: 15 May 91 13:42:03 GMT Sender: news@wpi.WPI.EDU (News) Organization: Worcester Polytechnic Institute Lines: 23 Nntp-Posting-Host: ash.wpi.edu I tried using the DisplayHeightMM macro to get the height and width of my screen and the results were: Sun spacrstation with a mono screen was an inch too large Sun 4 with a color screen was an inch too short DecStation 3100 with a color screen was just right What is the use of having this macro if the results aren't valid? Here is the code snippet I used to get the screen width: --- #define MM_PER_INCH 25.4 printf("Screen is %d pixels high, %d mm, and %lg inches high\n", DisplayHeight(XtDisplay(w),DefaultScreen(XtDisplay(w))), DisplayHeightMM(XtDisplay(w),DefaultScreen(XtDisplay(w))), DisplayHeightMM(XtDisplay(w),DefaultScreen(XtDisplay(w)))/MM_PER_INCH); --- -DaveN -- :^| HAVE A DAY. David Nedde daven@{maxine|wpi}.wpi.edu CS Dept. WPI Worcester, MA 01609