RE: [GD-Windows] Monitor aspect detection
Brought to you by:
vexxed72
From: Phil T. <ph...@mi...> - 2003-12-09 17:49:31
|
I think these are only going to work if the monitor is correctly identified (i.e. through plug-n-play); otherwise, if the monitors are using the generic drivers/settings there is no way for GDI to return the real information. Phil -----Original Message----- From: gam...@li... [mailto:gam...@li...] On Behalf Of Nicolas Romantzoff Sent: Tuesday, December 09, 2003 9:43 AM To: gam...@li... Subject: RE: [GD-Windows] Monitor aspect detection 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=3DASPECTY 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...=20 > [mailto:gam...@li...] On=20 > Behalf Of brian sharon > Sent: Tuesday, December 09, 2003 4:11 PM > To: gam...@li... > Subject: Re: [GD-Windows] Monitor aspect detection >=20 >=20 > Does GetDeviceCaps() give you a clue about whether pixels are=20 > square? =20 > I'm thinking specifically of the ASPECTX and ASPECTY arguments. >=20 > --brian >=20 >=20 ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 |