I've attached the executable and this code:
Rem Project: Dark Basic Pro Project
Rem Created: Tuesday, September 03, 2013
Rem ***** Main Source File *****
Set Display Mode 800,600,32
a2setlineaa 1 : aa = 1
Backdrop On
Color Backdrop 0xFFFFFFFF
sync on
sync rate 10
Do
if controlkey() then a2setlineaa 1 : aa = 1
if shiftkey() then a2setlineaa 0 : aa = 0
A2line 0,3,800,5, 0xFF0000FF
ink 0xFF000000,0
text 200, 200, "AA: " + str$(aa)
a2dot 300 + 2.0*sin(timer()*0.1), 350, 0xFF000000
sync
loop
end
You can (in theory) toggle between enabled and disabled anti-aliasing using CTRL and SHIFT, but here the line looks equal in both cases.
Thanks for helping me out.