Why Garble at 1024/768?

BlitzMax Forums/BlitzMax Beginners Area/Why Garble at 1024/768?

Amon(Posted 2007) [#1]
This first bit of code below works perfectly. It draws a rect where MapArray[x,y] = 1. The data is read fro defdata.



The following code which is designed for a screen res of 1024/768 results in incorrect data being drawn to the screen.

The only difference between this code and the one above is that this is setup for a 1024/768 screen res.



In 800/600 all is correct as seen in the pic below.


In 1024/768 it looks like this.





Why?


Amon(Posted 2007) [#2]
***FIXED***

Sorry for wasting peoples time. I had a 3impact process running in the background. Don't know why it didn't shut down.

Stopping the process fixed the issue. :/


ImaginaryHuman(Posted 2007) [#3]
I would've said it was because you were stopping reading at the end of the row 1 element too soon so when the next row started it had the cell from the end of the previous row showing up at the start, and has an accumulative effect as you go down each row.