From 9eb8b30aebbb4d61f521f36e9ba7b1f182cd1740 Mon Sep 17 00:00:00 2001 From: William Joye Date: Fri, 25 Oct 2019 11:46:47 -0400 Subject: clean up frame code --- tksao/frame/frame3d.C | 10 +++------- 1 file 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; jjred; + *(dest+1) = (unsigned char)bgColour->green; + *(dest+2) = (unsigned char)bgColour->blue; // will not see nan if (isfinite(diff)) { -- cgit v0.12