Source

gd-libgd / tests / gdimagefilledpolygon / bug00100.c

Diff from to

File tests/gdimagefilledpolygon/bug00100.c

 	gdPoint diamond[4];
 	int d, x, y, top, bot, left, right, r;
 
-	//                              R    G    B
+	/*                              R    G    B */
 	int white   = gdTrueColorAlpha(255, 255, 255, 10);
 	int black   = gdTrueColorAlpha(  0,   0,   0, 10);
 	int red     = gdTrueColorAlpha(255,   0,   0, 10);
 
 	gdImageFilledRectangle(im, 0, 0, 256, 256, white);
 
-	// M (bridge)
+	/* M (bridge) */
 	top = 240;
 	bot = 255;
 	d = 30;
 	pointy[4].y = bot;
 	gdImageFilledPolygon(im, pointy, 5, yellow);
 
-	// left-facing M not on baseline
+	/* left-facing M not on baseline */
 	top = 40;
 	bot = 70;
 	left = 120;
 	pointy[4].y = (top+bot)/2;
 	gdImageFilledPolygon(im, pointy, 5, purple);
 
-	// left-facing M on baseline
+	/* left-facing M on baseline */
 	top = 240;
 	bot = 270;
 	left = 20;
 	pointy[4].y = (top+bot)/2;
 	gdImageFilledPolygon(im, pointy, 5, magenta);
 
-	// left-facing M on ceiling
+	/* left-facing M on ceiling */
 	top = -15;
 	bot = 15;
 	left = 20;
 	diamond[3].y = y-d;
 	gdImageFilledPolygon(im, diamond, 4, cyan);
 
-	// M (bridge) not touching bottom boundary
+	/* M (bridge) not touching bottom boundary */
 	top = 100;
 	bot = 150;
 	x = 30;