Make interface responsive during plotting,

prevent endless loop, probably because of full internal buffers
This commit is contained in:
Holger Vogt 2019-08-11 19:00:17 +02:00
parent 3ab2c6468c
commit bc9a22e5f7
1 changed files with 2 additions and 2 deletions

View File

@ -773,7 +773,7 @@ WIN_DrawLine(int x1, int y1, int x2, int y2)
LineTo(wd->hDC, x2, wd->Area.bottom - y2);
OldPen = SelectObject(wd->hDC, OldPen);
DeleteObject(NewPen);
WaitForIdle();
return 0;
}
@ -833,7 +833,7 @@ WIN_Arc(int x0, int y0, int radius, double theta, double delta_theta)
Arc(wd->hDC, left, yb-top, right, yb-bottom, xs, yb-ys, xe, yb-ye);
OldPen = SelectObject(wd->hDC, OldPen);
DeleteObject(NewPen);
WaitForIdle();
return 0;
}