Index: trunk/stac/src/stacSize.c
===================================================================
--- trunk/stac/src/stacSize.c	(revision 3610)
+++ trunk/stac/src/stacSize.c	(revision 3666)
@@ -4,5 +4,6 @@
 #include "stac.h"
 
-bool stacSize(stacConfig *config,	// Configuration, containing the output size
+bool stacSize(int *outnx, int *outny,	// Size of output image (returned)
+	      float *xMapDiff, float *yMapDiff, // Difference applied to maps
 	      const psArray *images,	// Input images
 	      psArray *maps		// Transformation maps
@@ -91,6 +92,6 @@
 
     // Tweak the maps to account for the offset
-    config->xMapDiff = floor(xMin);
-    config->yMapDiff = floor(yMin);
+    *xMapDiff = floor(xMin);
+    *yMapDiff = floor(yMin);
     for (int i = 0; i < nImages; i++) {
 	psPlaneTransform *map = maps->data[i]; // The map of interest
@@ -99,8 +100,8 @@
     }
 
-    config->outnx = (int)(xMax + 0.5) - (int)xMin;
-    config->outny = (int)(yMax + 0.5) - (int)yMin;
+    *outnx = (int)(xMax + 0.5) - (int)xMin;
+    *outny = (int)(yMax + 0.5) - (int)yMin;
 
-    psTrace("stac.size", 1, "Output size is to be %dx%d\n", config->outnx, config->outny);
+    psTrace("stac.size", 1, "Output size is to be %dx%d\n", *outnx, *outny);
 
     psFree(inCoord);
