Date: Thu, 29 May 2003 07:42:23 +0200 To: Jacques Garrigue Cc: lablgtk at kaba.or.jp, nicolas.francois at free.fr Subject: Re: Aspect Ratio problem Message-ID: <20030529054223.GA1619 at iliana> References: <200305281326.22495.stalkern2 at tin.it> <20030529002345.1b4d362d.nicolas.francois at free.fr> <20030528202752.GA22120 at clipper.ens.fr> <20030529090706H.garrigue at kurims.kyoto-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030529090706H.garrigue at kurims.kyoto-u.ac.jp> From: Sven Luther On Thu, May 29, 2003 at 09:07:06AM +0900, Jacques Garrigue wrote: > From: Nicolas George > > Le decadi 10 prairial, an CCXI, Nicolas FRANCOIS a écrit : > > > 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. > > You're right. > LablGTK tries to be exhaustive on GTK functionnality, but not on GDK. > This was not so clear what would be useful in GDK, but actually people > appear to be using pretty much of it... > > > Of course, you will need that your X11 server knows the right size of > > the screen. Good luck. > > On my sub-A4 laptop, this returned 347x260. > Doesn't seem correct... > But if all you want is the aspect ratio, this may work better. What does your /var/log/XFree86.0.log say about this ? in 4.3.0 this value is autodetected by using the DDC bus, but may yield some false values with certain monitors. There are some XF86Config configuration file option to set this by hand though, which should give you the right values. Friendly, Sven Luther