I seem to have a problem with DRAWLINE not being able to draw to a sprite created with CREATESCREEN. The DRAWRECT does work. So I am wondering if this a bug, or am I doing something wrong?
Code with the problem
// Screen 0, Sprite 13
CREATESCREEN 0, 13, 256, 256
// Use screen for all output
USESCREEN 0
PRINT "Offscreen", 0,0
ALPHAMODE 0.8
DRAWRECT 254,0,5, 256, RGB(0,250,0) // <<---- This works
DRAWLINE 256,256,512,256, RGB(0,250,0) // <<---- Does not work
// Switch back to the window
USESCREEN -1
// Draw the screen
DRAWSPRITE 13, 0, 0
SHOWSCREEN
MOUSEWAIT