Index: trunk/stac/src/stacInvertMaps.c
===================================================================
--- trunk/stac/src/stacInvertMaps.c	(revision 3375)
+++ trunk/stac/src/stacInvertMaps.c	(revision 3666)
@@ -9,5 +9,5 @@
 
 psArray *stacInvertMaps(const psArray *maps, // Array of maps to invert
-			const stacConfig *config // Configuration
+			int outnx, int outny // Size of output image
     )
 {
@@ -48,7 +48,7 @@
 	// Create grid of points
 	for (int yint = 0; yint < NUM_GRID; yint++) {
-	    inCoord->y = (float)(yint * config->outny) / (float)(NUM_GRID - 1);
+	    inCoord->y = (float)(yint * outny) / (float)(NUM_GRID - 1);
 	    for (int xint = 0; xint < NUM_GRID; xint++) {
-		inCoord->x = (float)(xint * config->outnx) / (float)(NUM_GRID - 1);
+		inCoord->x = (float)(xint * outnx) / (float)(NUM_GRID - 1);
 
 		(void)psPlaneTransformApply(outCoord, oldMap, inCoord);
