[mapserver-commits] r11208 - in trunk/mapserver/mapscript: php swiginc

svn at osgeo.org svn at osgeo.org
Thu Mar 17 15:44:08 EDT 2011


Author: tbonfort
Date: 2011-03-17 12:44:08 -0700 (Thu, 17 Mar 2011)
New Revision: 11208

Modified:
   trunk/mapserver/mapscript/php/color.c
   trunk/mapserver/mapscript/swiginc/color.i
Log:
fix mapscript use of MS_INIT_COLOR


Modified: trunk/mapserver/mapscript/php/color.c
===================================================================
--- trunk/mapserver/mapscript/php/color.c	2011-03-17 19:36:20 UTC (rev 11207)
+++ trunk/mapserver/mapscript/php/color.c	2011-03-17 19:44:08 UTC (rev 11208)
@@ -129,7 +129,7 @@
     php_color = (php_color_object *) zend_object_store_get_object(zobj TSRMLS_CC);
     
 
-    MS_INIT_COLOR(*(php_color->color), red, green, blue);
+    MS_INIT_COLOR(*(php_color->color), red, green, blue,255);
 
     RETURN_LONG(MS_SUCCESS);
 }

Modified: trunk/mapserver/mapscript/swiginc/color.i
===================================================================
--- trunk/mapserver/mapscript/swiginc/color.i	2011-03-17 19:36:20 UTC (rev 11207)
+++ trunk/mapserver/mapscript/swiginc/color.i	2011-03-17 19:44:08 UTC (rev 11208)
@@ -50,7 +50,7 @@
         if (!color)
             return(NULL);
     
-        MS_INIT_COLOR(*color, red, green, blue);
+        MS_INIT_COLOR(*color, red, green, blue, 255);
 
         return(color);    	
     }
@@ -68,7 +68,7 @@
             return MS_FAILURE;
         }
     
-        MS_INIT_COLOR(*self, red, green, blue);
+        MS_INIT_COLOR(*self, red, green, blue, 255);
         return MS_SUCCESS;
     }
 
@@ -84,7 +84,7 @@
                 return MS_FAILURE;
             }
 
-            MS_INIT_COLOR(*self, red, green, blue);
+            MS_INIT_COLOR(*self, red, green, blue, 255);
             return MS_SUCCESS;
         }
         else {



More information about the mapserver-commits mailing list