simulator: fix line rasterization