Standard routine prototype to save the graphical state before a mode is set.
Source position: graphh.inc line 540
type savestateproc = procedure;