Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>revattr() video function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  REVATTR()                                                   Video Function
 Purpose..: Reverse the attribute for a rectangle on screen
-------------------------------------------------------------------------------
 Syntax...: RevAttr( [<nTRow>[, <nLCol>[, <nBRow>[,
                      <nRCol>]]]], [<nColor>] ) --> NIL

 Arguments: [<nTRow>]   = Top row.
            [<nLCol>]   = Left column.
            [<nBRow>]   = Bottom row.
            [<nRCol>]   = Right column.
            [<nColor>]  = Integer representing color attribute.
                          The formula is ...nFore + ( nBack * 16 ).

 Returns..: NIL

 Remark...: It is a high speed function to reverse the color of a
            specified rectangle of screen without disturbing any text on
            the screen. If the specified screen rectangle has a white
            Fore and blue Back, the function will change to blue in the
            Fore and white in the background. The function is capable of
            reversing all color attributes in a rectangle containing
            multiple color combinations. If <nColor> is passed, it will
            be reversed. The default is the full screen.

 Source...: REVATTR.C
-------------------------------------------------------------------------------
 Example..: The example will change all the screens colors
            to their reverse attributes without changing
            or overwriting any text that maybe on the screen.
            Like all of these functions, it uses direct video
            writes for speed.

              RevAttr( 0, 0, MaxRow(), MaxCol() )

See Also: SetAttr() ClrTable() RevChrAttr() wSetColor()

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