From a5c4bf8aae700d5f2948f33dfa5d712975f89fb0 Mon Sep 17 00:00:00 2001 From: Stefan Frederik Date: Thu, 31 Dec 2020 18:06:54 +0100 Subject: [PATCH] adjust comments --- src/draw.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/draw.c b/src/draw.c index 6d494ecd..ed3d2f7f 100644 --- a/src/draw.c +++ b/src/draw.c @@ -749,7 +749,7 @@ void drawline(int c, int what, double linex1, double liney1, double linex2, doub y1=Y_TO_SCREEN(liney1); x2=X_TO_SCREEN(linex2); y2=Y_TO_SCREEN(liney2); - /* if(!only_probes && (x2-x1)< 2.0 && fabs(y2-y1) < 2.0) return; */ + /* if(!only_probes && (x2-x1)< 3.0 && fabs(y2-y1) < 3.0) return; */ if( clip(&x1,&y1,&x2,&y2) ) { rr[i].x1=(short)x1; @@ -765,7 +765,7 @@ void drawline(int c, int what, double linex1, double liney1, double linex2, doub y1=Y_TO_SCREEN(liney1); x2=X_TO_SCREEN(linex2); y2=Y_TO_SCREEN(liney2); - /* if(!only_probes && (x2-x1)< 2.0 && fabs(y2-y1)< 2.0) return; */ + /* if(!only_probes && (x2-x1)< 3.0 && fabs(y2-y1)< 3.0) return; */ if( clip(&x1,&y1,&x2,&y2) ) { if(dash) { @@ -788,7 +788,7 @@ void drawline(int c, int what, double linex1, double liney1, double linex2, doub y1=Y_TO_SCREEN(liney1); x2=X_TO_SCREEN(linex2); y2=Y_TO_SCREEN(liney2); - /* if(!only_probes && (x2-x1)< 2.0 && fabs(y2-y1)< 2.0) return; */ + /* if(!only_probes && (x2-x1)< 3.0 && fabs(y2-y1)< 3.0) return; */ if( clip(&x1,&y1,&x2,&y2) ) { if(dash) { @@ -1159,7 +1159,7 @@ void filledrect(int c, int what, double rectx1,double recty1,double rectx2,doubl y1=Y_TO_SCREEN(recty1); x2=X_TO_SCREEN(rectx2); y2=Y_TO_SCREEN(recty2); - if(!only_probes && (x2-x1)< 2.0 && (y2-y1)< 2.0) return; + if(!only_probes && (x2-x1)< 3.0 && (y2-y1)< 3.0) return; if( rectclip(xctx->areax1,xctx->areay1,xctx->areax2,xctx->areay2,&x1,&y1,&x2,&y2) ) { if(draw_window) XFillRectangle(display, xctx->window, gcstipple[c], (int)x1, (int)y1, @@ -1185,7 +1185,7 @@ void filledrect(int c, int what, double rectx1,double recty1,double rectx2,doubl y1=Y_TO_SCREEN(recty1); x2=X_TO_SCREEN(rectx2); y2=Y_TO_SCREEN(recty2); - if(!only_probes && (x2-x1)< 2.0 && (y2-y1)< 2.0) return; + if(!only_probes && (x2-x1)< 3.0 && (y2-y1)< 3.0) return; if( rectclip(xctx->areax1,xctx->areay1,xctx->areax2,xctx->areay2,&x1,&y1,&x2,&y2) ) { r[i].x=(short)x1; @@ -1289,7 +1289,7 @@ void drawpolygon(int c, int what, double *x, double *y, int points, int poly_fil if( !rectclip(xctx->areax1,xctx->areay1,xctx->areax2,xctx->areay2,&x1,&y1,&x2,&y2) ) { return; } - if( !only_probes && (x2-x1)<2.0 && (y2-y1)<2.0) return; + if( !only_probes && (x2-x1)<3.0 && (y2-y1)<3.0) return; p = my_malloc(38, sizeof(XPoint) * points); for(i=0;iareax1,xctx->areay1,xctx->areax2,xctx->areay2,&x1,&y1,&x2,&y2) ) { if(dash) { @@ -1395,7 +1395,7 @@ void drawrect(int c, int what, double rectx1,double recty1,double rectx2,double y1=Y_TO_SCREEN(recty1); x2=X_TO_SCREEN(rectx2); y2=Y_TO_SCREEN(recty2); - /* if(!only_probes && (x2-x1)< 2.0 && (y2-y1)< 2.0) return; */ + /* if(!only_probes && (x2-x1)< 3.0 && (y2-y1)< 3.0) return; */ if( rectclip(xctx->areax1,xctx->areay1,xctx->areax2,xctx->areay2,&x1,&y1,&x2,&y2) ) { r[i].x=(short)x1; @@ -1426,7 +1426,7 @@ void drawtemprect(GC gc, int what, double rectx1,double recty1,double rectx2,dou y1=Y_TO_SCREEN(recty1); x2=X_TO_SCREEN(rectx2); y2=Y_TO_SCREEN(recty2); - /* if( (x2-x1)< 2.0 && (y2-y1)< 2.0) return; */ + /* if( (x2-x1)< 3.0 && (y2-y1)< 3.0) return; */ if( rectclip(xctx->areax1,xctx->areay1,xctx->areax2,xctx->areay2,&x1,&y1,&x2,&y2) ) { XDrawRectangle(display, xctx->window, gc, (int)x1, (int)y1, @@ -1446,7 +1446,7 @@ void drawtemprect(GC gc, int what, double rectx1,double recty1,double rectx2,dou y1=Y_TO_SCREEN(recty1); x2=X_TO_SCREEN(rectx2); y2=Y_TO_SCREEN(recty2); - /* if( (x2-x1)< 2.0 && (y2-y1)< 2.0) return; */ + /* if( (x2-x1)< 3.0 && (y2-y1)< 3.0) return; */ if( rectclip(xctx->areax1,xctx->areay1,xctx->areax2,xctx->areay2,&x1,&y1,&x2,&y2) ) { r[i].x=(short)x1;