summaryrefslogtreecommitdiffstats
path: root/tksao
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-10-31 18:10:55 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-10-31 18:10:55 (GMT)
commit43bba56115c36895a28f8fe9278de7e5ba0e2e6f (patch)
tree6fb0a63f32373f74cfa813decee3d60a29713065 /tksao
parent33a0f1a1e3753df8962d63df8cd73d1eb8bcb208 (diff)
downloadblt-43bba56115c36895a28f8fe9278de7e5ba0e2e6f.zip
blt-43bba56115c36895a28f8fe9278de7e5ba0e2e6f.tar.gz
blt-43bba56115c36895a28f8fe9278de7e5ba0e2e6f.tar.bz2
update mask
Diffstat (limited to 'tksao')
-rw-r--r--tksao/frame/frame.C8
-rw-r--r--tksao/frame/framergb.C3
2 files changed, 8 insertions, 3 deletions
diff --git a/tksao/frame/frame.C b/tksao/frame/frame.C
index 371500d..3d8a409 100644
--- a/tksao/frame/frame.C
+++ b/tksao/frame/frame.C
@@ -214,7 +214,8 @@ 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->context()->fits;
+ Context* cc = msk->context();
+ FitsImage* currentMsk = cc->fits;
XColor* maskColor = msk->color();
int mark = msk->mark();
@@ -223,10 +224,11 @@ unsigned char* Frame::fillMask(FitsMask* msk, int width, int height,
// basics
FitsImage* sptr = currentMsk;
- int mosaic = isMosaic();
+ int mosaic = cc->isMosaic();
// variable
double* mm = sptr->matrixToData(sys).mm();
+ // waj
FitsBound* params = sptr->getDataParams(context->secMode());
int srcw = sptr->width();
@@ -241,6 +243,7 @@ unsigned char* Frame::fillMask(FitsMask* msk, int width, int height,
sptr = currentMsk;
mm = sptr->matrixToData(sys).mm();
+ // waj
params = sptr->getDataParams(context->secMode());
srcw = sptr->width();
}
@@ -268,6 +271,7 @@ unsigned char* Frame::fillMask(FitsMask* msk, int width, int height,
if (sptr) {
mm = sptr->matrixToData(sys).mm();
+ // waj
params = sptr->getDataParams(context->secMode());
srcw = sptr->width();
}
diff --git a/tksao/frame/framergb.C b/tksao/frame/framergb.C
index ee9947d..d39a4e1 100644
--- a/tksao/frame/framergb.C
+++ b/tksao/frame/framergb.C
@@ -770,7 +770,8 @@ void FrameRGB::getColorbarCmd()
Tcl_AppendResult(interp, str.str().c_str(), NULL);
}
-void FrameRGB::getInfoCmd(const Vector& vv, Coord::InternalSystem ref, char* var)
+void FrameRGB::getInfoCmd(const Vector& vv, Coord::InternalSystem ref,
+ char* var)
{
FrameBase::getInfoCmd(vv, ref, var);
if (!currentContext->cfits)