DEF FNDplot_scr_scale(Mode,INTEGER X_corr, Y_corr)
!
! Sets/queries screen scaling factors which are sometimes required according to
! the version of HTBasic and the Windows desktop settings when executing
! GLOAD commands (e.g. if Visual Designs are activated in Windows XP/Vista)
!
! INPUT: Mode: Mode of this function
! 0 = Auto mode: Determines the x/y offset automatically
! 1 = Write mode, set X_corr / Y_corr as the correction factors
! 2 = Read mode, return stored X_corr / Y_corr factors
! X_corr: Correction value for x resolution
! Y_corr: Correction value for y resolution
!
! Return value: = 1: no error. 0: error occured