Article ID: 843485 - View products that this article applies to.
The following problems may occur in Microsoft Windows Mobile 2003 Second Edition software for Pocket PC when you try to use a Microsoft Windows Mobile-based Game API (GAPI) application in landscape mode:
If an application is built by using the Windows Mobile 2003 SDK or earlier versions, GAPI forces the device into portrait mode when the GXOpenDisplay function is called. This is because earlier applications expect the device to be in portrait mode. There is no direct way to create a new GAPI application that supports landscape mode.
The GXSetViewport API for GAPI does not actually set up a rectangular viewport. The GXSetViewport API sets up a horizontal band that stretches across the screen. This is not a problem for portrait-mode applications. However, in landscape mode, that band intersects parts of the title bar and parts of the menu bar. The GXSetViewport API does not work on all devices in landscape mode. Specifically, the GXSetViewport API does not work on those devices that do not have a standard framebuffer.
To prevent your application from being forced into portrait mode, try the following:
Microsoft has confirmed that this is a problem in Windows Mobile 2003 Second Edition software for Pocket PC.
Article ID: 843485 - Last Review: March 22, 2005 - Revision: 1.0