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 - repaintnew() restore screen area at new coordinates http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 repaintnew()        Restore screen area at new coordinates
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   proc repaintnew extern
   param value _HSCR hScreen, ;
         value uint  uTop, ;
         value uint  uLeft, ;
         value uint  uBottom, ;
         value uint  uRight

 Arguments
   hScreen is a saved screen handle.

   uTop is the top row of the screen area.

   uLeft is the leftmost column of the screen area.

   uBottom is the bottom row of the screen area.

   uRight is the rightmost column of the screen area.

 Return
   None.

 Description
   This procedure works similar to repaintarea(). It does not remove the
   saved screen area from the save stack, but instead of repainting the saved
   image at its original coordinates, it uses the specified coordinates
   instead.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_repaintnew
   vardef
      _HSCR hScreen
   enddef
   hScreen := savescrn( 10, 10, 20, 40 )   // save an area
   wait
   clear
   wait
   repaintnew( hScreen, 12, 12, 22, 42 )   // restore it somewhere else
   wait
   endproc

   proc main
   Test_repaintnew()
   endproc

See Also: repaintarea()

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