KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q47021: VRES Video Modes Have 30 Lines Using Graphics Text Functions

Article: Q47021
Product(s): See article
Version(s): 5.00 5.10
Operating System(s): MS-DOS
Keyword(s): ENDUSER | S_QuickC | mspl13_c
Last Modified: 15-JAN-1990

When using the Output Text routines in the Microsoft run-time library
(Version 5.10 "Microsoft C for the MS-DOS Operating System: Run-Time
Library Reference," Pages 54-55), the two graphic modes, _VRES2COLOR
and _VRES16COLOR, have 30 text lines by default, due to their
increased vertical resolution. All other graphics modes have 25 text
lines when using these routines.

The following graphics functions are the routines concerned with text
placement and output:

   _displaycursor()
   _gettextcolor()
   _gettextposition()
   _outtext()
   _settextposition()
   _settextcolor()
   _settextwindow()
   _wrapon()

The line numbers stated above are based on the default 8 x 8 font size
of the IBM ROM BIOS. Note that when using fonts, the number of text
lines in any video mode depends on the height of the font. For
information concerning changing from the default font size, see the
interrupt 10, function 11 entries in "IBM ROM BIOS," a Microsoft Press
book by Ray Duncan.

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.