Advertisement

Error in remainder of integer? (scaling offset)

Started by March 24, 2018 03:13 PM
11 comments, last by suliman 6 years, 8 months ago

Note, that the above "fix" can still disagree with drawStuff by 1 pixel due to the roundoff (though in rather small percentage of cases). So 


for (int i = startY; i < startY + h; i++) // hori
	gfx.lineRelative(0, i * TILE*scale + pan.y, gfx.screenX, 0, col);

is probably preferred, as it should agree with drawStuff completely (assuming compiler optimizations didn't break it).

Yes I do the last one now, its easier.

Thanks for your help!

This topic is closed to new replies.

Advertisement