Close of build 04.
*** exrmakepreview/makePreview.cpp 2009-08-31 10:52:16.587024739 -0700
--- exrmakepreview/makePreview.cpp 2009-08-31 10:52:18.578018655 -0700
***************
*** 78,84 ****
// at 0.0, 0.0, and 5.0 respectively.
//
! float x = max (0.f, h * m);
if (x > 1)
x = 1 + knee (x - 1, 0.184874f);
--- 78,84 ----
// at 0.0, 0.0, and 5.0 respectively.
//
! float x = max (0.f, (float)(h * m));
if (x > 1)
x = 1 + knee (x - 1, 0.184874f);
***************
*** 132,138 ****
preview.r = gamma (pixel.r, m);
preview.g = gamma (pixel.g, m);
preview.b = gamma (pixel.b, m);
! preview.a = int (clamp (pixel.a * 255.f, 0.f, 255.f) + .5f);
}
}
}
--- 132,138 ----
preview.r = gamma (pixel.r, m);
preview.g = gamma (pixel.g, m);
preview.b = gamma (pixel.b, m);
! preview.a = int (clamp ((double)(pixel.a * 255.f), (double)0.f, (double)255.f) + .5f);
}
}
}