I've been told that GXGetDisplayProperties, when called on an iPAQ 38xx, returns the pitch values for the 36xx displays. If we're bypassing GAPI on the 38xx using memory address AC0755A0h instead of a call to GXBeginDraw() we need to have the real display settings.
I was thinking one way to detect what model the user is running would be with SystemParametersInfo.
using the uiAction flag SPI_GETOEMINFO. Has anyone else experimented with ways of detecting the device at runtime outside of using GXGetDisplayProperties? Is SystemParametersInfo the only other option?
After we know what model the user is using then it's a simple matter of populating the GXDisplayProperties structure as appropriate or adjusting our Display object's attributes.
Thanks,
-Hosed
I was thinking one way to detect what model the user is running would be with SystemParametersInfo.
- Code:
BOOL SystemParametersInfo (
UINT uiAction,
UINT uiParam,
PVOID pvParam,
UINT fWinIni );
using the uiAction flag SPI_GETOEMINFO. Has anyone else experimented with ways of detecting the device at runtime outside of using GXGetDisplayProperties? Is SystemParametersInfo the only other option?
After we know what model the user is using then it's a simple matter of populating the GXDisplayProperties structure as appropriate or adjusting our Display object's attributes.
Thanks,
-Hosed