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 - repaintarea() restore screen without removing from save stack http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 repaintarea()       Restore screen without removing from save stack
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   proc repaintarea extern

 Arguments
   None.

 Return
   None.

 Description
   This procedure works similar to restorearea(), but it does not remove the 
   saved screen area from the save stack. This allows for repeated restores
   without prior screen saves.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_repaintarea
   @ 12, 30 ?? coreleft()
   savearea( 12, 30, 15, 45 )   // save an area
   @ 13, 30 ?? coreleft()
   wait
   repaintarea()                // restore it
   @ 14, 30 ?? coreleft()
   releasescreens()             // clear the stack
   @ 15, 30 ?? coreleft()
   endproc

   proc main
   Test_repaintarea()
   endproc

See Also: restorearea()

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