[comp.windows.x] DisplayHeightMM, DisplayWidthMM

guy@auspex.auspex.com (Guy Harris) (07/01/90)

>The functions DisplayHeightMM and DisplayWidthMM when used on a
>SUN-4 spark station are returning the wrong screen size.

The server can't figure out what the screen size is in millimeters, as
that information isn't available to the CPU.  HP's server, according to
an earlier posting on much this same subject, permits you to specify the
physical size of the screen in a configuration file:

	From: stroyan@hpfcdq.HP.COM (Mike Stroyan)
	Newsgroups: comp.windows.x
	Subject: Re: DIX-AID
	Date: 27 Dec 89 00:44:44 GMT
	Organization: Hewlett-Packard - Fort Collins, CO

	...

	The HP X server can be told the screen size by setting the
	diagonal size in the /usr/lib/X11/X0screens configuration file.
	Since the screen size depends on the monitor and the monitor can
	be of various sizes, the server depends on you to configure the
	size.  The line to set the size should look something like
	"/dev/crt monitorsize 480  # in millimeters".

Dunno whether the Open Windows server lets you configure this; it
certainly should.  Perhaps the sample server should let you do so as
well?