to make things clear: the code i posted, was firstly a loop to draw the tileset. (wich is 7 tiles, or 256px, wide). when that looked bugged, i tried starting at the 21 tile (pattern 20). then i made it so it would draw grass tiles (wich are allways supposed to lay side-by-side. when the problem resided, i tried resizing the app-window, wich actually effects the result.

here are several screenshots. nothing has been changed between the different shots. not even a recompile. i have only drag-resized the window:



I guess this proves there must be something strange going on?
i cant see where the error can be in my code, as i really havent coded more that that loop, and loaded in a tileset.

P.S: I'm running windows Vista

P.P.S: Moving the window does nothing. only resizing it makes any differance.

P.P.P.S: here's a recording of it in action: http://thorins.net/prob.avi(15mb)