Quite agree, ALL variables that hold point or ink colours MUST be defined first as dwords as normal integers just are not big enough.
16 bit mode just doesn't cut it for accurate colour values.
Try following test:
s=50
pink as dword
pink=rgb(255,200,200)
cls pink
ink rgb(0,0,0),rgb(0,0,0)
box 0,0,s*3+4,s+3
ink pink,0
box 0,0,s,s
for f=1 to s
for g=1 to s
dot s+f-1,g-1
next g
line (s*2),f-1,(s*2)+s+1,f-1
next f
ink rgb(0,0,0),0
col1 as dword
col2 as dword
col3 as dword
col4 as dword
col1=point(5,5)
col2=point(s+5,5)
col3=point(s+s+5,5)
col4=point(400,5)
set cursor 0,100
print pink," = PINK"
print col1," = BOX"
print col2," = DOT"
print col3," = LINE"
print col4," = CLS"
wait key
In 16bit mode, all the different methods of drawing produce different results!!!! The only two that match are CLS and BOX. How stupid is that.
Why do the three main drawing commands, BOX, LINE and DOT draw in different colours. 32bit mode seems to work ok though.
Gronda, Gronda