We have no trouble doing this in nornmal portrait mode, but if a customer starts our product in landscape mode, we are trying to adapt.
We now detect if we have started in landscape mode by checking WinScreenGetAttributes and rowBytes. If it yields an INVALID number, then we know we are in landscape mode. (this is a ROTATION mode, not to be confused with WIDE mode and the upcoming API - this is not a clean 480 x 320 mode...it exists only on the T3 simulator)
HOWEVER, we have found that in this mode, the actual screen seems to be physically partitioned. The left (top) of the screen really is only 320 pixels wide in memory, and when we try to do a WinRectCopy beyond the 320 pixel edge, the graphics wrap around, as if the OS thinks it's bigger than 320 wide but the physical pitch is actually just 320. Sound like things aren't fully implemented yet.
We've found no way to draw on the right side (bottom) of the screen when in this rotated mode. We also know no way to manually rotate the screen back, since we assume the special screen roate commands are not yet operational.
Has anyone managed to draw beyond 320 in landscape rotation? Or has anyone managed to force the device back into potrait mode?
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
