Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_setattr()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FT_SETATTR()
 Change color attributes of screen region
------------------------------------------------------------------------------

 Syntax

      FT_SETATTR( <nTRow>, <nLCol>, <nBRow>, <nRCol>, <nColor> ) -> NIL

 Arguments

     <nTRow>, <nLCol>, <nBRow>, and <nRCol> are the coordinates of the
     screen region.

     <nColor> is an integer representing the new color attribute.
     The formula is:

         nFore + ( nBack * 16 )

 Returns

     NIL

 Description

     This is a high speed function to change the colors of a specified
     region of the screen without disturbing any text.  Uses direct
     video writes.

 Examples

     FT_SETATTR( 0, 0, MaxRow(), MaxCol(), 95 )

     This example will change the entire screen's colors to bright white on
     magenta without changing or overwriting any text on the screen.

 Source: VIDEO1.C

 Author: Robert A. DiFalco

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson