From 1cb94bedd62b74dbd913562e506a00f7c6381741 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Fri, 1 Mar 2024 00:23:07 +0100 Subject: [PATCH] drawtemppolygon: draw/clear correctly control points when moving if no `Fix for broken GPUs option` is set --- src/draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/draw.c b/src/draw.c index fa5d34f2..6c0ae873 100644 --- a/src/draw.c +++ b/src/draw.c @@ -1843,7 +1843,7 @@ void drawtemppolygon(GC gc, int what, double *x, double *y, int points, int flag x2 + xctx->cadhalfdotsize, y2 + xctx->cadhalfdotsize, x1 - xctx->cadhalfdotsize, y1 - xctx->cadhalfdotsize, xctx->lw); } else { - if(gc == xctx->gc[SELLAYER]) for(i = 0; i < points; i++) { + if(gc == xctx->gc[SELLAYER] || gc == xctx->gctiled ) for(i = 0; i < points; i++) { if( POINTINSIDE(X_TO_SCREEN(x[i]), Y_TO_SCREEN(y[i]), xctx->areax1, xctx->areay1, xctx->areax2, xctx->areay2)) { drawtemparc(gc, NOW, x[i], y[i], xctx->cadhalfdotsize, 0., 360.);