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