Fix a tearing issue while dragging a new rect.

Before this commit, dragging a new rect would result in one
of the lines lagging behind, because it is drawn in the middle
of regeneration. After this commit, the rectangle stays rectangular.

For a reason I do not understand, this only fixes Win32; GTK
continues to exhibit the bug, whereas Cocoa has never exhibited it
but the render latency seems to have lowered slightly.
pull/106/head
whitequark 2017-01-03 01:33:41 +00:00
parent 934f33f4c0
commit 387c5c5144
1 changed files with 1 additions and 1 deletions

View File

@ -454,7 +454,7 @@ void GraphicsWindow::HitTestMakeSelection(Point2d mp) {
if(!sel.Equals(&hover)) {
hover = sel;
PaintGraphics();
InvalidateGraphics();
}
}