System: Dell M1710 with Vista Ultimate (2,16Ghz Dual Core, 2048mb RAM, GeForce 7950 GTX 512mb)
IDE: Delphi 2006
Library: Phoenix 2D

I have written this code:
[pascal]
x := 0;
y := 0;
for i := 20 to Images[0].PatternCount - 1 do
begin
Images[0].Draw(x*32,y*32,0);
//Images[0].Draw(x*32,y*32,i);
if x < 7 then
Inc( x )
else
begin
x := 0;
Inc( y );
end;

end;
[/pascal]

wich somehow gives weird results. the "tiles" shift on the x-axis (they arent where they are supposed to be). and the weirder: theire position seems to have something to do with the size of the window. i'll try to get a pic of it later...[/img]