117 |
|
} else if (tmTop->flags & TM_F_BW) { |
118 |
|
cmon[RED] = cmon[GRN] = cmon[BLU] = li; |
119 |
|
} |
120 |
< |
bi = ( (int4)GAMTSZ*cd->clfb[RED]*cmon[RED]/li ) >> 8; |
120 |
> |
bi = ( (int32)GAMTSZ*cd->clfb[RED]*cmon[RED]/li ) >> 8; |
121 |
|
cs[3*i ] = bi>=GAMTSZ ? 255 : cd->gamb[bi]; |
122 |
< |
bi = ( (int4)GAMTSZ*cd->clfb[GRN]*cmon[GRN]/li ) >> 8; |
122 |
> |
bi = ( (int32)GAMTSZ*cd->clfb[GRN]*cmon[GRN]/li ) >> 8; |
123 |
|
cs[3*i+1] = bi>=GAMTSZ ? 255 : cd->gamb[bi]; |
124 |
< |
bi = ( (int4)GAMTSZ*cd->clfb[BLU]*cmon[BLU]/li ) >> 8; |
124 |
> |
bi = ( (int32)GAMTSZ*cd->clfb[BLU]*cmon[BLU]/li ) >> 8; |
125 |
|
cs[3*i+2] = bi>=GAMTSZ ? 255 : cd->gamb[bi]; |
126 |
|
} |
127 |
|
returnOK; |
250 |
|
|
251 |
|
|
252 |
|
#ifdef PCOND |
253 |
< |
int /* run pcond to map picture */ |
253 |
> |
static int /* run pcond to map picture */ |
254 |
|
dopcond(psp, xp, yp, flags, monpri, gamval, Lddyn, Ldmax, fname) |
255 |
|
BYTE **psp; |
256 |
|
int *xp, *yp; |