297 |
|
if (id < 0) |
298 |
|
continue; /* not good enough */ |
299 |
|
/* convert color */ |
300 |
< |
tmCvColrs(&odS.brt[id], odS.chr[id], c, 1); |
300 |
> |
tmCvColrs(&odS.brt[id], odS.chr[id], (COLR *)c, 1); |
301 |
|
if (imm_mode | needmapping) /* if immediate mode */ |
302 |
|
needmapping |= NEWRGB; /* map it later */ |
303 |
|
else /* else map it now */ |
461 |
|
needmapping &= ~NEWMAP; |
462 |
|
odRedrawAll(); /* redraw everything */ |
463 |
|
} |
464 |
< |
if (tmMapPixels(odS.rgb,odS.brt,odS.chr,odS.nsamp) != TM_E_OK) |
464 |
> |
if (tmMapPixels((BYTE *)(odS.rgb), odS.brt, |
465 |
> |
(BYTE *)(odS.chr), odS.nsamp) != TM_E_OK) |
466 |
|
return; |
467 |
|
needmapping &= ~NEWRGB; |
468 |
|
} |