Index: trunk/psphot/src/psphotGrowthCurve.c
===================================================================
--- trunk/psphot/src/psphotGrowthCurve.c	(revision 18323)
+++ trunk/psphot/src/psphotGrowthCurve.c	(revision 18438)
@@ -7,5 +7,5 @@
 // XXX add a option to turn off the curve-of-growth (ie, make the apMag = fitMag everywhere);
 
-bool psphotGrowthCurve (pmReadout *readout, pmPSF *psf, bool ignore, psMaskType maskVal) {
+bool psphotGrowthCurve (pmReadout *readout, pmPSF *psf, bool ignore, psMaskType maskVal, psMaskType markVal) {
 
     // bool status;
@@ -44,8 +44,8 @@
 
         // NOTE: we use pmModelAdd not pmSourceAdd because we are not working with a normal source
-        psImageKeepCircle (mask, xc, yc, radius, "OR", PM_MASK_MARK);
+        psImageKeepCircle (mask, xc, yc, radius, "OR", markVal);
         pmModelAdd (image, mask, model, PM_MODEL_OP_FULL, maskVal);
         pmSourcePhotometryAper (&apMag, model, image, mask, maskVal);
-        psImageKeepCircle (mask, xc, yc, radius, "AND", PS_NOT_U8(PM_MASK_MARK));
+        psImageKeepCircle (mask, xc, yc, radius, "AND", PS_NOT_U8(markVal));
 
         // the 'ignore' mode is for testing
