A device returns an error when you use the GETRAWFRAMEBUFFER global constant with Windows Mobile 2003 Second Edition software for Pocket PC and with Windows Mobile 2003 Second Edition software for Smartphone (843498)



The information in this article applies to:

  • Microsoft Windows Mobile 2003 Second Edition software for Pocket PC
  • Microsoft Windows Mobile 2003 Second Edition software for Smartphone

SYMPTOMS

A device returns an error when you use the Game API (GAPI) GETRAWFRAMEBUFFER global constant with a high dots per inch (high-dpi) device. Specifically, the GAPI GETRAWFRAMEBUFFER global constant does not work with devices that do not have a standard linear frame buffer. This problem occurs with Microsoft Windows Mobile 2003 Second Edition software for Pocket PC and with Windows Mobile 2003 Second Edition software for Smartphone.

CAUSE

This problem occurs when the high-dpi device does not provide a raw pointer to linear screen memory. The GAPI programming model assumes that the high-dpi device provides a raw pointer to linear screen memory. However, we cannot guarantee that all high-dpi devices have a linear frame buffer. Currently, we have no support for non-linear display.

WORKAROUND

Use a Graphics Device Interface (GDI) when the GETRAWFRAMEBUFFER global constant fails on a high-dpi device.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

REFERENCES

For additional information about developing dpi-aware applications, visit the following Microsoft Developer Network (MSDN) Web site:

Modification Type:MinorLast Reviewed:1/31/2005
Keywords:kbinfo kbtshoot kbprb KB843498 kbAudDeveloper