summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-10-22 15:28:46 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-10-22 15:28:46 (GMT)
commitaf3d367d3878f57138a12a7c5446452e1efd2dab (patch)
tree65b3fc17a2346bb34f7703ead3f84929dedfe2cd
parentf69c177fa06a6f3537818ea44d78caafd6cdeb64 (diff)
downloadblt-af3d367d3878f57138a12a7c5446452e1efd2dab.zip
blt-af3d367d3878f57138a12a7c5446452e1efd2dab.tar.gz
blt-af3d367d3878f57138a12a7c5446452e1efd2dab.tar.bz2
new mask
-rw-r--r--tksao/frame/frame.C22
1 files changed, 8 insertions, 14 deletions
diff --git a/tksao/frame/frame.C b/tksao/frame/frame.C
index 20a9185..35ecc2a 100644
--- a/tksao/frame/frame.C
+++ b/tksao/frame/frame.C
@@ -183,18 +183,13 @@ unsigned char* Frame::fillImage(int width, int height,
CLEARSIGBUS
if (img) {
- // waj
- /*
- if (context->mask.head()) {
- FitsMask* mptr = context->mask.tail();
- while (mptr) {
- unsigned char* msk = fillMask(mptr, width, height, sys);
- blend(img,msk,width,height);
- delete [] msk;
- mptr = mptr->previous();
- }
+ FitsMask* mptr = mask.tail();
+ while (mptr) {
+ unsigned char* msk = fillMask(mptr, width, height, sys);
+ blend(img,msk,width,height);
+ delete [] msk;
+ mptr = mptr->previous();
}
- */
}
return img;
@@ -207,8 +202,7 @@ unsigned char* Frame::fillMask(FitsMask* msk, int width, int height,
unsigned char* img = new unsigned char[width*height*4];
memset(img,0,width*height*4);
- /*
- FitsImage* currentMsk = msk->current();
+ FitsImage* currentMsk = msk->context()->fits;
XColor* maskColor = msk->color();
int mark = msk->mark();
@@ -272,7 +266,7 @@ unsigned char* Frame::fillMask(FitsMask* msk, int width, int height,
}
}
CLEARSIGBUS
- */
+
return img;
}