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:
parent
29ede91401
commit
9fb1090e0e
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue