1 dimensional array to act like a 2d one?

BlitzMax Forums/BlitzMax Programming/1 dimensional array to act like a 2d one?

I need to look into shaders maybe helpful for something else. replaced the above code with the right one.