[mapserver-commits] r12767 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Mon Nov 14 05:13:09 EST 2011
Author: tbonfort
Date: 2011-11-14 02:13:09 -0800 (Mon, 14 Nov 2011)
New Revision: 12767
Modified:
trunk/mapserver/mapgd.c
Log:
fix rendering offset on thick GD lines (#3962)
Modified: trunk/mapserver/mapgd.c
===================================================================
--- trunk/mapserver/mapgd.c 2011-11-11 20:03:50 UTC (rev 12766)
+++ trunk/mapserver/mapgd.c 2011-11-14 10:13:09 UTC (rev 12767)
@@ -350,8 +350,8 @@
gdImageColorTransparent(brush,0);
brush_fc = gdImageColorAllocate(brush, gdImageRed(ip,stroke->color->pen),
gdImageGreen(ip,stroke->color->pen), gdImageBlue(ip,stroke->color->pen));
- gdImageFilledEllipse(brush,ceil(stroke->width/2),ceil(stroke->width/2),
- ceil(stroke->width),ceil(stroke->width), brush_fc);
+ gdImageFilledEllipse(brush,MS_NINT(brush->sx/2),MS_NINT(brush->sy/2),
+ MS_NINT(stroke->width),MS_NINT(stroke->width), brush_fc);
gdImageSetBrush(ip, brush);
if(stroke->patternlength > 0) {
c = gdStyledBrushed;
More information about the mapserver-commits
mailing list