From 0b8fbed73caa59df126770e1bf8fc574b86e22e6 Mon Sep 17 00:00:00 2001 From: Martin Fuhrer Date: Sat, 14 Oct 2006 04:13:28 +0000 Subject: [PATCH] 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) --- src/tuxpaint.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 08374c5e3..b6cfe8168 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -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); } } }