I have big problems drawing pixel perfect with the dawline command, something is completely broken.
Set your physical monitor resolution to 1280*800 and run this on a PC:
SetWindowSize (1280,800,1)
SetScissor (0,0,0,0)
// set display properties
SetVirtualResolution (1280,800)
SetOrientationAllowed (0,0,1,1)
SetClearColor (255,255,255)
red=MakeColor (255,0,0)
do
// Draw test pattern
DrawLine(1,0,1280,0,red,red) // Should be: DrawLine(0,0,1279,0,red,red)
DrawLine(1280,0,1280,800,red,red) // Should be: DrawLine(1279,0,1279,799,red,red)
DrawLine(1,799,1280,799,red,red) // Should be: DrawLine(0,799,1279,799,red,red)
DrawLine(1,0,1,800,red,red) // Should be: DrawLine(0,0,0,799,red,red)
Sync()
// Check if ESC is pressed
if GetRawKeyPressed( 27 )=1 then End
loop
The code has the coordinates I need for it to work, but the comments behind the lines has the "right" logical coordinates that should work.
----------------
AGK programmer
Did Amiga / AMOS programming in the 90's.