[mapserver-commits] r12859 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Tue Dec 6 15:29:17 EST 2011
Author: assefa
Date: 2011-12-06 12:29:17 -0800 (Tue, 06 Dec 2011)
New Revision: 12859
Modified:
trunk/mapserver/mapdraw.c
Log:
fix windows nuild
Modified: trunk/mapserver/mapdraw.c
===================================================================
--- trunk/mapserver/mapdraw.c 2011-12-06 16:58:19 UTC (rev 12858)
+++ trunk/mapserver/mapdraw.c 2011-12-06 20:29:17 UTC (rev 12859)
@@ -692,13 +692,14 @@
layer->project = MS_TRUE;
if(layer->masklayer) {
+ int maskLayerIdx;
/* render the mask layer in its own imageObj */
if(!MS_IMAGE_RENDERER(image)->supports_pixel_buffer) {
msSetError(MS_MISCERR, "Layer (%s) references references a mask layer, but the selected renderer does not support them", "msDrawLayer()",
layer->name);
return (MS_FAILURE);
}
- int maskLayerIdx = msGetLayerIndex(map,layer->masklayer);
+ maskLayerIdx = msGetLayerIndex(map,layer->masklayer);
if(maskLayerIdx == -1) {
msSetError(MS_MISCERR, "Layer (%s) references unknown mask layer (%s)", "msDrawLayer()",
layer->name,layer->masklayer);
@@ -852,10 +853,11 @@
renderer->getRasterBufferHandle(image_draw,&rb);
if(maskLayer && maskLayer->maskimage) {
rasterBufferObj mask;
+ unsigned int row,col;
memset(&mask,0,sizeof(rasterBufferObj));
MS_IMAGE_RENDERER(maskLayer->maskimage)->getRasterBufferHandle(maskLayer->maskimage,&mask);
/* modify the pixels of the overlay */
- unsigned int row,col;
+
if(rb.type == MS_BUFFER_BYTE_RGBA) {
for(row=0;row<rb.height;row++) {
unsigned char *ma,*a,*r,*g,*b;
More information about the mapserver-commits
mailing list