| 580 |
|
1., double(ytop)/GetHeight())) |
| 581 |
|
ptvw.type = 0; |
| 582 |
|
// update spectral sampling |
| 583 |
< |
if (setspectrsamp(CNDX, WLPART) <= 0) { |
| 583 |
> |
int rv = setspectrsamp(CNDX, WLPART); |
| 584 |
> |
if (rv < 0) { |
| 585 |
|
error(USER, "unsupported spectral sampling"); |
| 586 |
|
return false; |
| 587 |
|
} |
| 588 |
+ |
if (!rv & (RDTcolorT(dt) != RDTscolor) & (RDTcolorT(dt) != RDTscolr)) |
| 589 |
+ |
error(WARNING, "spectral range incompatible with color output"); |
| 590 |
|
COLORV ** parr = NULL; // set up tiny source drawing |
| 591 |
|
float ** zarr = NULL; |
| 592 |
|
if (!ptvw.type && directvis && dblur <= FTINY) { |