summaryrefslogtreecommitdiffstats
path: root/tksao/frame/frame3d.C
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2019-10-24 16:25:09 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2019-10-24 16:25:09 (GMT)
commit3a366034c59438ecadf5090b30b51a9ceb7a88b5 (patch)
tree6b1bdbf4a3d6a5b59018adec9e93d6b79da9cff1 /tksao/frame/frame3d.C
parent02c78267227b5c3c9e7c93f8df28008109c0c397 (diff)
downloadblt-3a366034c59438ecadf5090b30b51a9ceb7a88b5.zip
blt-3a366034c59438ecadf5090b30b51a9ceb7a88b5.tar.gz
blt-3a366034c59438ecadf5090b30b51a9ceb7a88b5.tar.bz2
clean up widget code
Diffstat (limited to 'tksao/frame/frame3d.C')
-rw-r--r--tksao/frame/frame3d.C12
1 files changed, 6 insertions, 6 deletions
diff --git a/tksao/frame/frame3d.C b/tksao/frame/frame3d.C
index eafbbd0..46ce6e7 100644
--- a/tksao/frame/frame3d.C
+++ b/tksao/frame/frame3d.C
@@ -824,9 +824,9 @@ unsigned char* Frame3d::fillImageColor(RayTrace* rt)
double hh = keyContext->fits->high();
double diff = hh - ll;
- register unsigned char red = (unsigned char)bgColor->red;
- register unsigned char green = (unsigned char)bgColor->green;
- register unsigned char blue = (unsigned char)bgColor->blue;
+ register unsigned char red = (unsigned char)bgColour->red;
+ register unsigned char green = (unsigned char)bgColour->green;
+ register unsigned char blue = (unsigned char)bgColour->blue;
unsigned char* dest = img;
float* src = zbuf;
@@ -1182,9 +1182,9 @@ void Frame3d::savePhotoCmd(const char* ph)
}
}
else {
- *(dest+block.offset[0]) = nanColor->red;
- *(dest+block.offset[1]) = nanColor->green;
- *(dest+block.offset[2]) = nanColor->blue;
+ *(dest+block.offset[0]) = nanColour->red;
+ *(dest+block.offset[1]) = nanColour->green;
+ *(dest+block.offset[2]) = nanColour->blue;
*(dest+block.offset[3]) = 255;
}
}