( Windows )
SetWindowAllowResize( 1 ) needs to be fixed, it sets the 1,1 coordinate to something like 5,5
Compare
SetWindowAllowResize( 0 ) // <=== the key line
SetErrorMode(2) : SetWindowSize( 1024, 768, 0 ) : SetVirtualResolution( 1024, 768 ) : SetOrientationAllowed( 1, 1, 1, 1 ) : SetSyncRate( 30, 0 ) : SetScissor( 0,0,0,0 ) : UseNewDefaultFonts( 1 )
do : drawline (1,1,200,1,255,255,0) : drawline (1,1,1,200,255,255,0) : sync() : loop // this code works right, coordinates start at 1,1
TO
SetWindowAllowResize( 1 ) // <=== the key line
SetErrorMode(2) : SetWindowSize( 1024, 768, 0 ) : SetVirtualResolution( 1024, 768 ) : SetOrientationAllowed( 1, 1, 1, 1 ) : SetSyncRate( 30, 0 ) : SetScissor( 0,0,0,0 ) : UseNewDefaultFonts( 1 )
do : drawline (1,1,200,1,255,255,0) : drawline (1,1,1,200,255,255,0) : sync() : loop // // this code works wrong, coordinates start at like 5,5