Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - putscrattr() set attribute at screen location http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 putscrattr()        Set attribute at screen location
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   proc putscrattr extern
   param value uint uRow, ;
         value uint uCol, ;
         value uint uAttribute

 Arguments
   uRow is a screen row.

   uCol is a screen column.

   uAttribute is a color attribute.

 Return
   None.

 Description
   This procedure sets the specified attribute at the specified screen
   position by doing a direct screen write, independent of the current
   screen driver.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_putscrattr
   // Display the first letters of each word in white on red
   @ 1, 1 ?? "This is some fancy text"
   putscrattr( 1,  1, RED_WHITE )        // 'T'
   putscrattr( 1,  6, RED_WHITE )        // 'i'
   putscrattr( 1,  9, RED_WHITE )        // 's'
   putscrattr( 1, 14, RED_WHITE )        // 'f'
   putscrattr( 1, 20, RED_WHITE )        // 't'
   endproc

   proc main
   Test_putscrattr()
   endproc

See Also: getscrattr() putscrchar() putscrcharattr()

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