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