HOWTO: How to Set Up and Use 320x200x8 and 320x240x8 DDraw Modes (139096)
The information in this article applies to:
- Microsoft Game Software Development Kit (SDK)
This article was previously published under Q139096 SUMMARY
To set up DirectDraw's mode 13 (320x200x8) or mode X (320x240x8), an
application must use the DDSCL_ALLOWMODEX flag with SetCooperativeLevel() for both modes. After calling SetCooperativeLevel(), call SetDisplayMode() for the appropriate display mode. SetDisplayMode will return DDERR_INVALIDMODE if DDSCL_ALLOWMODEX is not used.
DirectDraw's mode 13 and mode X primary surfaces cannot be locked down
for direct access. Applications using these two modes should create a
primary surface with one back buffer. The back buffer is used as the
rendering surface. Call Flip() for page flipping between the primary
surface and the back buffer.
Modification Type: | Minor | Last Reviewed: | 8/18/2005 |
---|
Keywords: | kbcode kbhowto KB139096 |
---|
|