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 - releasescreens() release screen save stack http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 releasescreens()    Release screen save stack
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   proc releasescreens extern

 Arguments
   None.

 Return
   None.

 Description
   This procedure frees all memory which has been allocated for saved screen
   images. All saved screen images which have not been restored are lost.

   Images which were saved using the savescrn() function are not deleted. The
   memory allocated for these images will be released only after a call to
   restorescrn().

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_releasescreens
   @ 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_releasescreens()
   endproc

See Also: restorescrn() savescrn()

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