Article ID: 67338 - Last Review: September 24, 2003 - Revision: 2.0

Horizontal Mouse Position in CGA and MCGA Modes

This article was previously published under Q67338
Expand all | Collapse all

SUMMARY

When you use the 320 by 200 CGA or MCGA graphics modes and a mouse, the horizontal coordinates returned by the driver are from 0 to 638 in increments of two.

The mouse driver returns a horizontal coordinate, which is twice the actual screen coordinate. However, the vertical coordinates correspond directly to the actual position on the screen.

MORE INFORMATION

Because the virtual screen for the mouse is in the range of 640 by 200 to 640 by 480, the virtual coordinate that maps to the actual screen coordinate must therefore be double the actual. The vertical coordinates in each case are 200 pixels, so there is a one-to-one mapping of the virtual and actual coordinates.

Reference(s):
"Microsoft Mouse Programmer's Reference Guide" Chapter 6

APPLIES TO
  • Microsoft Mouse Driver 9.1 Standard Edition
  • Microsoft Mouse Driver 7.04 Standard Edition
  • Microsoft Mouse Driver 8.2 Standard Edition
  • Microsoft Mouse Driver 9.0 Standard Edition
Keywords: 
KB67338
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations