There was an off-by-one mistake in the sprite scaler, which meant that the bottom row of pixels could get written to all sorts of interesting locations, possibly overwriting code. There was another mistake. Even if the bottom of the sprites was off-screen, screen pixel locations were still calculated for it. This is now fixed as well, so drawing partially visible sprites should be a tiny bit faster.
|