Adapted fixes from Ariok.

Stop the scanline_start/scanline_end spamming.