BUG: BitBlt() Bitmap on VGA Display Causes GP FaultLast reviewed: January 5, 1995Article ID: Q87494 |
The information in this article applies to:
SYMPTOMSWhen an application for the Microsoft Windows environment calls BitBlt() to copy a large (640 x 480) bitmap to the VGA screen, the application experiences a general protection (GP) fault.
RESOLUTIONIncrease the size of the bitmap to store one additional scan line. Use the BitBlt function to copy only the desired portion of the bitmap to the screen.
STATUSMicrosoft has confirmed this to be a problem with Windows version 3.1. We are researching this problem and will post more information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThere are two methods for increasing the size of the bitmap. If the contents of the bitmap are fixed, Microsoft Paintbrush or a similar image- editing tool can be used to add or remove a scanline from the bitmap. If the image changes, the following eight steps add a scanline to a bitmap under program control and copy the bitmap to the screen. The handle to the original bitmap is stored in the hBMPOriginal variable.
|
Additional reference words: buglist3.10 3.10 scan line
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |