How can I programmatically accomplish the effect of launching Intel GMA Driver control panel applet and selecting "Maintain aspect ratio" on Windows 7? Is there an API call to make, registry entry to change, configuration file to modify?
I've tried a number of things, without success. The most promising was calling ChangeDisplaySettingsEx() with dmDisplayFixedOutput = DMDFO_CENTER, but that just returns error (-2 bad mode).
We have legacy kiosk software designed for 1024x768 and we're now moving to Windows 7 and to a 16x9 monitor. We don't want the desktop stretched - we want the aspect ratio maintained, understanding that we will have "black bars" on either side of the screen; that's to be addressed in a later release. It's fine if the image is scaled until it fills the screen vertically as long as it is scaled by the same amount horizontally, in fact that's preferable to just showing a 1024x768 image centered in the monitor with black bars on all 4 sides. That Intel GMA Driver checkbox for "Maintain aspect ratio" does exactly what we want (in conjunction with telling Windows the screen is 1024x768). The issue is how can our installer achieve this? We don't have the user interacting with Windows at any point - we can't have him start Control Panel and do this. Anyone have any thoughts?