Reverted to original screen screen update bounds for eraser tool (adding +1 or +10 to bounds does not fix the ghosting lines problem on Mac OS X)

This commit is contained in:
Martin Fuhrer 2006-10-14 04:13:28 +00:00
parent c449654db9
commit 0b8fbed73c

View file

@ -3334,10 +3334,10 @@ static void mainloop(void)
rect_xor(old_x - w / 2, old_y - h / 2,
old_x + w / 2, old_y + h / 2);
update_screen(old_x - w / 2 + r_canvas.x - 10,
old_y - h / 2 + r_canvas.y - 10,
old_x + w / 2 + r_canvas.x + 10,
old_y + h / 2 + r_canvas.y + 10);
update_screen(old_x - w / 2 + r_canvas.x,
old_y - h / 2 + r_canvas.y,
old_x + w / 2 + r_canvas.x,
old_y + h / 2 + r_canvas.y);
}
}
@ -3358,10 +3358,10 @@ static void mainloop(void)
rect_xor(new_x - w / 2, new_y - h / 2,
new_x + w / 2, new_y + h / 2);
update_screen(new_x - w / 2 + r_canvas.x - 10,
new_y - h / 2 + r_canvas.y - 10,
new_x + w / 2 + r_canvas.x + 10,
new_y + h / 2 + r_canvas.y + 10);
update_screen(new_x - w / 2 + r_canvas.x,
new_y - h / 2 + r_canvas.y,
new_x + w / 2 + r_canvas.x,
new_y + h / 2 + r_canvas.y);
}
}
}