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