[mapserver-commits] r10758 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Mon Nov 22 09:51:05 EST 2010


Author: tbonfort
Date: 2010-11-22 06:51:05 -0800 (Mon, 22 Nov 2010)
New Revision: 10758

Modified:
   trunk/mapserver/mapgd.c
Log:
removed unused offset params for gd shade rendering

Modified: trunk/mapserver/mapgd.c
===================================================================
--- trunk/mapserver/mapgd.c	2010-11-22 14:16:39 UTC (rev 10757)
+++ trunk/mapserver/mapgd.c	2010-11-22 14:51:05 UTC (rev 10758)
@@ -135,9 +135,8 @@
 ** Polygon fill. Based on "Concave Polygon Scan Conversion" by Paul
 ** Heckbert from "Graphics Gems", Academic Press, 1990.
 **
-** TODO: do we need the offsets?
 */
-static void imageFilledPolygon(gdImagePtr im, shapeObj *p, int c, int offsetx, int offsety)
+static void imageFilledPolygon(gdImagePtr im, shapeObj *p, int c)
 {
   typedef struct {     /* a polygon edge */
     double x;          /* x coordinate of edge's intersection with current scanline */
@@ -277,7 +276,7 @@
       xr = (int) (active[j+1]->x - 0.5) ;
 
       if(active[j]->x != active[j+1]->x) 
-        imageScanline(im, xl+offsetx, xr+offsetx, y+offsety, c);
+        imageScanline(im, xl, xr, y, c);
                
       active[j]->x += active[j]->dx;	/* increment edge coords */
       active[j+1]->x += active[j+1]->dx;
@@ -358,7 +357,7 @@
   if(!img || !p || !color) return MS_FAILURE;
   if(!(ip = MS_IMAGE_GET_GDIMAGEPTR(img))) return MS_FAILURE;
   SETPEN(ip, color);
-  imageFilledPolygon(ip, p, color->pen, 0, 0);
+  imageFilledPolygon(ip, p, color->pen);
   return MS_SUCCESS;
 }
 
@@ -739,7 +738,7 @@
   if(!(tp = MS_IMAGE_GET_GDIMAGEPTR(tile))) return MS_FAILURE;
   gdImageColorTransparent(tp,0);
   gdImageSetTile(ip, tp);
-  imageFilledPolygon(ip, p, gdTiled, 0, 0);
+  imageFilledPolygon(ip, p, gdTiled);
   return MS_SUCCESS;
 }
 



More information about the mapserver-commits mailing list