diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2019-10-25 15:46:47 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2019-10-25 15:46:47 (GMT) |
commit | 9eb8b30aebbb4d61f521f36e9ba7b1f182cd1740 (patch) | |
tree | 934397b72cc6e51c06e1d5fbf75df597bf388b9d /tksao | |
parent | f3904dde8b1745edf914da242e25a52f24a6b431 (diff) | |
download | blt-9eb8b30aebbb4d61f521f36e9ba7b1f182cd1740.zip blt-9eb8b30aebbb4d61f521f36e9ba7b1f182cd1740.tar.gz blt-9eb8b30aebbb4d61f521f36e9ba7b1f182cd1740.tar.bz2 |
clean up frame code
Diffstat (limited to 'tksao')
-rw-r--r-- | tksao/frame/frame3d.C | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tksao/frame/frame3d.C b/tksao/frame/frame3d.C index 30c2d78..5ae2bbd 100644 --- a/tksao/frame/frame3d.C +++ b/tksao/frame/frame3d.C @@ -826,19 +826,15 @@ unsigned char* Frame3d::fillImageColor(RayTrace* rt) XColor* bgColour = bgColor(); - 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; unsigned char* mksrc = mkzbuf; for (int jj=0; jj<height; jj++) { for (int ii=0; ii<width; ii++, dest+=3, src++, mksrc++) { - *dest = red; - *(dest+1) = green; - *(dest+2) = blue; + *dest = (unsigned char)bgColour->red; + *(dest+1) = (unsigned char)bgColour->green; + *(dest+2) = (unsigned char)bgColour->blue; // will not see nan if (isfinite(diff)) { |