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)

This commit is contained in:
Martin Fuhrer 2006-10-20 03:04:17 +00:00
parent 29ede91401
commit 9fb1090e0e

View file

@ -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
}