RE: [GD-Windows] Monitor aspect detection
Brought to you by:
vexxed72
From: Nicolas R. <nic...@fr...> - 2003-12-09 17:44:50
|
Hi ! Thanks for reminding me that GDI function ! Had already looked into it, alas ASPECTX and ASPECTY always returned identical values whatever mode was selected, and whatever monitor I was using. Looks like ASPECTX=ASPECTY for screen ! (btw, never understood the "meaning" of ASPECTXY... But who cares). Gave it another try today, but this time using the "HORZSIZE" and "VERTSIZE" I completely missed the first time... And those seem to work ! So... Using the current mode resolution and those HORZSIZE/VERTSIZE values, I've finally been able to compute a correct aspect whatever the mode is (at least on my machine). Still have to try it on some weird LCDs and settings, but hope is back ! Thanks everyone ! Nicolas > -----Original Message----- > From: gam...@li... > [mailto:gam...@li...] On > Behalf Of brian sharon > Sent: Tuesday, December 09, 2003 4:11 PM > To: gam...@li... > Subject: Re: [GD-Windows] Monitor aspect detection > > > Does GetDeviceCaps() give you a clue about whether pixels are > square? > I'm thinking specifically of the ASPECTX and ASPECTY arguments. > > --brian > > |