adjust comments

This commit is contained in:
Stefan Frederik 2020-12-31 18:06:54 +01:00
parent f18125a943
commit a5c4bf8aae
1 changed files with 10 additions and 10 deletions

View File

@ -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;i<points; i++) {
@ -1359,7 +1359,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) )
{
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;