BUG: XORing May Not Erase Lines in SVGA Modes

Last reviewed: July 22, 1997
Article ID: Q109680
7.00 | 1.00 1.50 MS-DOS | WINDOWS kbtool kbbuglist

The information in this article applies to:

  • Microsoft C/C++ for MS-DOS, version 7.0
  • Microsoft Visual C++ for Windows, versions 1.0 and 1.5

SYMPTOMS

Using the GRAPHICS.LIB function _setwritemode() with the _GXOR constant may not produce the expected output when drawing lines using _lineto() or _lineto_w(). Specifically, drawing a line using the XOR write mode directly on top of another line may not erase the original line. This problem occurs only in super VGA modes.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The sample program below illustrates the problem:

Sample Code

#include <graph.h>
#include <conio.h>

void main(void)
{
   if (_setvideomode(_VRES256COLOR)==0)
      exit(0);
   _clearscreen(_GCLEARSCREEN);
   _setwritemode(_GXOR);
   _setcolor(7);
   _moveto(320,240);
   _lineto(177,378);
   _getch();
   _moveto(320,240);
   _lineto(177,378);
   _getch();
   _setvideomode(_DEFAULTMODE);
}


Additional reference words: 1.00 1.50 7.00 8.00 8.00c
KBCategory: kbtool kbbuglist
KBSubcategory: GraphicsIss
Keywords : kb16bitonly


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.