Graphics Demo bug
kerryw
Posts: 61
Not sure if this clobbers anything important but:
VAR
....
long colors[noparse][[/noparse]64]
'init colors
repeat i from 0 to 64
colors := $00001010 * (i+4) & $F + $2B060C02
should be:
'init colors
repeat i from 0 to 63
colors := $00001010 * (i+4) & $F + $2B060C02
Is there someone we should be PM'ing or e-mailing these kinds of things to?
Thanks,
Kerry
VAR
....
long colors[noparse][[/noparse]64]
'init colors
repeat i from 0 to 64
colors := $00001010 * (i+4) & $F + $2B060C02
should be:
'init colors
repeat i from 0 to 63
colors := $00001010 * (i+4) & $F + $2B060C02
Is there someone we should be PM'ing or e-mailing these kinds of things to?
Thanks,
Kerry
Comments
it is only done once at the program start and then after 'init tile screen
'init bouncing lines uses the long properly for
byte x[noparse][[/noparse]lines]
byte y[noparse][[/noparse]lines]
byte xs[noparse][[/noparse]lines]
byte ys[noparse][[/noparse]lines]
this is ok only because "long colors[noparse][[/noparse]64]" occurs immediately before to them in the VAR declarations.
I am assuming that there is no other programing that uses color data beond 0 to 63.
Thanks for pointing this bug out.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.