From 9fb1090e0e453c543ba88f9c370e88569daeb14f Mon Sep 17 00:00:00 2001 From: Martin Fuhrer Date: Fri, 20 Oct 2006 03:04:17 +0000 Subject: [PATCH] Added temporary fix for Mac OS X ghosted lines problem when using eraser tool (entire screen is refreshed whenever eraser tool is moved while the mouse button is held down) --- src/tuxpaint.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index b7637b750..c5b67142a 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -9161,6 +9161,11 @@ static void do_eraser(int x, int y) update_canvas(x - sz / 2, y - sz / 2, x + sz / 2, y + sz / 2); rect_xor(x - sz / 2, y - sz / 2, x + sz / 2, y + sz / 2); + +#ifdef __APPLE__ + /* Prevent ghosted eraser outlines from remaining on the screen in windowed mode */ + update_screen(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT); +#endif }