> WinScreenMode(winScreenModeGetDefaults,&width,&height,&gOldDepths,NULL);
>
> to get the screen width and height, but in Palm OS5 simulator, the
function
> returns width = 160, height = 160, not 320x320, why is this?

thats a feature. PalmSource was real stupid and didn't decided to do
what the documentation says by returning non 160 values for this API
call.. instead, they created a new API for this.

well.. i guess the real reason is that too many developers assumed
160x160 :) and, for compatibility, it was probably best to not change
this (someone in PalmSource will be able to explain this)

on sony:

    // get the 'real screen dimensions' :)
    HRWinGetDisplayExtent(deviceP->sonyHR.libRef, &width, &height);

on palm high density:

    // get the current display information
    WinScreenGetAttribute(winScreenWidth,  &width);
    WinScreenGetAttribute(winScreenHeight, &height);

that should be everything you need :)

---
Aaron Ardiri                           [EMAIL PROTECTED]
CEO - CTO                                              +46 70 656 1143
Mobile Wizardry                         http://www.mobilewizardry.com/



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to