Hi! >>------------------------------ >>There are some devices (Sony for example) whose screen resolution is >>320x320. >>------------------------------ > > Is WinGetDisplayExtent the best way to detect this then? If I get a ROM for > POSE of a Sony device will it display this behaviour? > The POSE ROMs for Sony are a faithful reproduction of the original device, wrt Hires. Sony will leave the logical display size at 160x160, and WinGetDisplayExtent will return 160x160. What you have to do is detect that you are running on a hires-enabled Sony (query a specific feature, as described in the CLIE SDK), then use the special Sony Hires API to set up the screen. Something like:
UInt32 hiresWidth = 320; UInt32 hiresHeight = 320; error = HRWinScreenMode(Canvas::sonyHRLibRefNum, winScreenModeSet, &hiresWidth, &hiresHeight, NULL, NULL); Detecting the Sony is a good idea even if you don't want hires, because it allows you to turn the Hires-Assist feature off (which might lead to strange side-effects). Unfortunately, the Sony version of the OS tries to be smart everywhere about converting from low-res to hi-res, and you might be best off with your own blitting code (which you seem to already have). Cheers, Tilo ================================================================ http://www.tilo-christ.de - Lots of cool stuff for your Palm ================================================================ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
