[mapserver-commits] r10154 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Wed May 12 22:15:33 EDT 2010


Author: sdlime
Date: 2010-05-12 22:15:29 -0400 (Wed, 12 May 2010)
New Revision: 10154

Modified:
   trunk/mapserver/mapgd2.c
Log:
Trivial cleanup in mapgd2.c...

Modified: trunk/mapserver/mapgd2.c
===================================================================
--- trunk/mapserver/mapgd2.c	2010-05-11 20:13:09 UTC (rev 10153)
+++ trunk/mapserver/mapgd2.c	2010-05-13 02:15:29 UTC (rev 10154)
@@ -307,7 +307,7 @@
 void renderLineGD(imageObj *img, shapeObj *p, strokeStyleObj *stroke) 
 {
   gdImagePtr ip;
-  int c, bc=gdTransparent;
+  int c;
 
   if(!img || !p || !stroke) return;
   ip = MS_IMAGE_GET_GDIMAGEPTR(img);
@@ -327,14 +327,14 @@
       k += MS_NINT(stroke->pattern[i]);
     style = (int *) malloc (k * sizeof(int));
 
-    sc = c; /* start with the main color */    
+    sc = c; /* start with the color */    
 
     k=0;
     for(i=0; i<stroke->patternlength; i++) {
       for(j=0; j<stroke->pattern[i]; j++, k++) {
         style[k] = sc;
       }
-      sc = ((sc==c)?bc:c);
+      sc = ((sc==c)?gdTransparent:c);
     }
 
     gdImageSetStyle(ip, style, k);
@@ -363,7 +363,7 @@
 void renderGlyphsLineGD(imageObj *img, labelPathObj *labelpath, labelStyleObj *style, char *text) {
 }
 
-void renderGlyphsGD(imageObj *img,double x, double y, labelStyleObj *style, char *text) {
+void renderGlyphsGD(imageObj *img, double x, double y, labelStyleObj *style, char *text) {
 }
 
 void renderEllipseSymbolGD(imageObj *img, double x, double y, symbolObj *symbol, symbolStyleObj *style) {



More information about the mapserver-commits mailing list