| # | Line 574 | Line 574 | rmx_write_header(const RMATRIX *rm, int dtype, FILE *f | |
|---|---|---|
| 574 | return(0); | |
| 575 | if (rm->info) | |
| 576 | fputs(rm->info, fp); | |
| 577 | < | if (dtype == DTfromHeader) |
| 577 | > | if (dtype == DTfromHeader) { |
| 578 | dtype = rm->dtype; | |
| 579 | < | else if (dtype == DTrgbe && (rm->dtype == DTxyze || |
| 579 | > | #if DTrmx_native==DTfloat |
| 580 | > | if (dtype == DTdouble) /* but stored as float? */ |
| 581 | > | dtype = DTfloat; |
| 582 | > | #endif |
| 583 | > | } else if (dtype == DTrgbe && (rm->dtype == DTxyze || |
| 584 | findCIEprims(rm->info))) | |
| 585 | dtype = DTxyze; | |
| 586 | else if ((dtype == DTxyze) & (rm->dtype == DTrgbe)) | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |