Topic : The GFA-Basic Compendium Author : GFA Systemtechnik GmbH Version : GFABasic.HYP v2.98 (12/31/2023) Subject : Documentation/Programming Nodes : 899 Index Size : 28056 HCP-Version : 3 Compiled on : Atari @charset : atarist @lang : @default : Document not found @help : Help @options : +g -i -s +z @width : 75 @hostname : STRNGSRV @hostname : CAB @hostname : HIGHWIRE @hostname : THING View Ref-File_C _X _Y _C returns the number of color registers. _X returns the current window width in pixels. _Y returns the current window height in pixels. Memo: _C = WORK_OUT(13) which is safe to use. _X and _Y are initialized via Line-A variables and then changed by some window commands if used. _X -> V_REZ_HZ (Line-A variables) _Y -> V_REZ_VT Avoid, _X and _Y as they change based on the window commands used. _X and _Y return width and height unlike the WORK_OUT() values which are the maximum coordinates allowed. Thus: _X = WORK_OUT(0)+1 ST low resolution example: _X=320 _Y=200 WORK_OUT(0)=319 WORK_OUT(1)=199 Line-A Variable Table+