Ticket #5112: xscreensaver-5.27-comment_style-1.patch
File xscreensaver-5.27-comment_style-1.patch, 1.0 KB (added by , 11 years ago) |
---|
-
TabularUnified hacks/delaunay.c
a b 87 87 dy = yp - *yc; 88 88 drsqr = dx*dx + dy*dy; 89 89 90 / /Original91 //return((drsqr <= *rsqr) ? TRUE : FALSE);92 // Proposed by Chuck Morris90 /* Original 91 return((drsqr <= *rsqr) ? TRUE : FALSE); 92 Proposed by Chuck Morris */ 93 93 return((drsqr - *rsqr) <= EPSILON ? TRUE : FALSE); 94 94 } 95 95 -
TabularUnified hacks/tessellimage.c
a b 507 507 out[i].p = (n > 0 508 508 ? (XPoint *) calloc (out[i].npoints + 1, sizeof (*out[i].p)) 509 509 : 0); 510 / /printf("%d: ", i);510 /*printf("%d: ", i);*/ 511 511 for (j = 0; j < out[i].npoints; j++) 512 512 { 513 513 ITRIANGLE *tt = &v[t->tri[j]]; 514 514 out[i].p[j].x = (p[tt->p1].x + p[tt->p2].x + p[tt->p3].x) / 3; 515 515 out[i].p[j].y = (p[tt->p1].y + p[tt->p2].y + p[tt->p3].y) / 3; 516 / /printf(" [%d: %d %d]", j, out[i].p[j].x, out[i].p[j].y);516 /*printf(" [%d: %d %d]", j, out[i].p[j].x, out[i].p[j].y);*/ 517 517 } 518 / /printf("\n");518 /*printf("\n");*/ 519 519 } 520 520 521 521 free (vert_to_tri);