Date: Wed, 28 May 2003 22:27:53 +0200 From: Nicolas George To: Nicolas FRANCOIS Cc: lablgtk at kaba.or.jp Subject: Re: Aspect Ratio problem Message-ID: <20030528202752.GA22120 at clipper.ens.fr> Reply-To: lablgtk at kaba.or.jp References: <20030524185247.1439a2be.nicolas.francois at free.fr> <200305281326.22495.stalkern2 at tin.it> <20030529002345.1b4d362d.nicolas.francois at free.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline In-Reply-To: <20030529002345.1b4d362d.nicolas.francois at free.fr> --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le decadi 10 prairial, an CCXI, Nicolas FRANCOIS a =E9crit=A0: > No it isn't. Try it by yourself : download my drgeocaml, compile it and > run it in say 1280*1024, which is my actual resolution although it doesn't > respect the classical aspect ratio (which would be something like > 1280*960). The right angles don't look right, and thez circles are > ellipses. Gdk provides the two functions gdk_screen_width_mm and gdk_screen_height_mm. LablGtk does not have stubs for them, but it has stubs for gdk_screen_width and gdk_screen_height, it should be straightforward to add the necessary. Of course, you will need that your X11 server knows the right size of the screen. Good luck. --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (SunOS) iD8DBQE+1RvIsGPZlzblTJMRAlUPAKDMZmS8bUCXY2Wf1/T9uDNF2OdQcwCdGNB5 jErXMIHQgm71hUkQlp1QpYk= =OS0Q -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1--