RE: [GD-Windows] (no subject)
Brought to you by:
vexxed72
From: Jon W. <hp...@mi...> - 2003-12-09 00:12:26
|
Message To make things exciting, many LCD 1280x1024 monitors have square pixels. I'd go with the assumption that monitors do have square pixels, and thus the view ratio == resolution ratio. Then supply a "special" option to compensate for the known oddball cases, of which 1280x1024 on a 4x3 monitor is the only obvious one. Well, there's the case of 800x600 being blown up to fullscreen on a 16:9 display, too, and stretching like mad. There's no good way of finding this out. The best you can do is capture the resolution at start-up, before mode switch, and assume it's square. Note that most CRT monitors have separate width/height adjustment for the image, so individual users may have a different adjustment, too. Cheers, / h+ -----Original Message----- From: gam...@li... [mailto:gam...@li...]On Behalf Of Nicolas Romantzoff Sent: Monday, December 08, 2003 3:58 PM To: Gamedevlists-Windows@Lists. Sourceforge. Net Subject: [GD-Windows] (no subject) Hi, I'm looking for a way of "detecting" the pixel-aspect under a given mode. My first idea was to first detect the monitor's aspect, and then multiply that with (mode's height / mode's width). Alas, couldn't find any way to retrieve that monitor's aspect. I need that information to adapt cameras field of views between different (yet well-known) resolutions like 1280x1024, which is absolutely not a square pixel on a 4:3 monitor, and 800x600, which is perfectly square. And i will flame anyone answering difference is not visible ! :))) It becomes extremely important now, with some monitors (especially latest LCDs), allowing to be positioned "vertically" (3:4 monitors), or with weird resolutions (832x702). If anyone could be of a help on that, i would really appreciate ! __________________________________________________________________ Nicolas Romantzoff ICQ#: 1182420 Current ICQ status: + More ways to contact me __________________________________________________________________ --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.547 / Virus Database: 340 - Release Date: 02/12/2003 |