KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q31149: Mouse-Cursor State and EGA Memory

Article: Q31149
Product(s): See article
Version(s): 6.x
Operating System(s): MS-DOS
Keyword(s): ENDUSER | | mspl13_basic
Last Modified: 28-JUN-1988

The Microsoft Mouse driver EGA interface maintains the mouse-cursor
state in the unused 8K of video memory available at the top of the
four 64K buffers that comprise the 256K of total video memory
available on a loaded EGA adapter. Normally this is of little
consequence in programming such systems; however, if you resize the
video buffer by reprogramming the CRT Controller's Offset register,
problems may occur.
   You will know there is a problem if garbage appears on the display
after panning through an enlarged virtual screen.
   To work around this problem, do not use Mouse Function 1 to show
the mouse cursor. Instead, use an alternative method of monitoring the
mouse's screen location (e.g. XOR some graphical object to the
screen).

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.

Copyright Microsoft Corporation 1986-2002.