mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
*** empty log message ***
This commit is contained in:
parent
bd32ff6974
commit
c402611a7f
@ -30,7 +30,6 @@
|
||||
* Auxiliary Support Routines.
|
||||
*/
|
||||
#include "tiffiop.h"
|
||||
#include "cmath.h"
|
||||
|
||||
#ifdef COLORIMETRY_SUPPORT
|
||||
#include <math.h>
|
||||
@ -45,7 +44,7 @@ TIFFDefaultTransferFunction(TIFFDirectory* td)
|
||||
tf[0][0] = 0;
|
||||
for (i = 1; i < n; i++) {
|
||||
double t = (double)i/((double) n-1.);
|
||||
tf[0][i] = (uint16)cfloor(65535.*pow(t, 2.2) + .5);
|
||||
tf[0][i] = (uint16)floor(65535.*pow(t, 2.2) + .5);
|
||||
}
|
||||
if (td->td_samplesperpixel - td->td_extrasamples > 1) {
|
||||
tf[1] = (uint16 *)_TIFFmalloc(n * sizeof (uint16));
|
||||
|
Loading…
x
Reference in New Issue
Block a user