Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: pch@mystech.com (Pete Halverson)
Subject: Re: X Server Screen Size
Date: 1995/04/07	[thread overview]
Message-ID: <pch-0704951353220001@m142.mystech.com> (raw)
In-Reply-To: D6Lw6v.HFq@ncgrafix.demon.co.uk

In article <D6Lw6v.HFq@ncgrafix.demon.co.uk>, steve@ncgrafix.demon.co.uk
(steve) wrote:

> How do I tell the X server how big my screen is such that these 
> functions return correct values?

The XDec server supports a command line option that specifies the
resolution of the display, in pixels/inch.  So if your display is 1024x768
pixels, and the physical size of the image area of your monitor is
300mmx225mm, then your horizontal and vertical resolution is
1024/(300/25.4) = 86.7dpi.

If you start your server with the option

    X -dpi 87

(either by hand or from Xdm in /usr/lib/X11/xdm/Xservers), it should then
report the physical attributes correctly.

If you have different horizontal and vertical resolutions, you can specify
these as

   X -dpix 87 -dpiy 89

but I'd probably try to tweak the display controls a bit to get dpix ==
dpiy, as there are probably lots of apps out there that think that pixels
are square :-)

pch



      reply	other threads:[~1995-04-07  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-04-06  4:00 X Server Screen Size steve
1995-04-07  4:00 ` Pete Halverson [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox