Hi Evert,
It looks like I led everybody up the garden path a bit when I said that it was when the Setfont was rem'd or not, when in actual fact, I was also rem'ing the "Include" for the font as well.
I did what you asked, and started a location 1 instead of zero and the result was the same. See the second pic
I also did some other Box,lines & circle to check that it wasn't something weird in my LCD or wiring. But all those are OK
Then I thought, it has to do with the font, why not change the font, so I changed it to a 5x5 font, and the results were OK. See first Pic.
I thought that it might have been a corrupted font file, so I grabbed an 8x8 font file from a backup zip 2.0.7.3
and the results were still the same.
In the picture, you can see that it is actually starting at 1.
The last test I have tried, The 8x8 font was include and setfont was rem'd out, this code was used, and the box start was changed to 10
The result was the picture "Starts at 10"
[code:1:8b6826a23c]
CLS
Box (1 , 1) - (61 , 25) , 1
BoxFill (10 , 28) - (61 , 54) , 1
Circle (93,13) ,6, 1
Line (64 , 54) - (127 , 54) , 1
Line (127 , 31) - (127 , 52) , 1
Line (64 , 30) - (64 , 52) , 1
Line (67 , 30) - (123 , 30) , 1
[/code:1:8b6826a23c]
Since the program was small, I didn't think that the HWstack, SWstack or Framesize would be a a problem since there was only an included font and (originally) one boxfill in the program, but as a last resort, I changed them to
$hwstack = 100
$swstack = 100
$framesize = 100
and that fixed the problem. This only shown the importance of these three items in a program, and tearing the program down to basics, & trying different things to get to the bottom of the problem.
Thanks for looking at the problem Evert.
Dean
↧