Cleanup: move unit char/short/float to functions

This caused GCC 8.1 to crash at build time,
but was also not very nice use of macros.
This commit is contained in:
2018-05-07 17:14:28 +02:00
parent 66ec3c7e7f
commit 905eeb0bc7
8 changed files with 40 additions and 27 deletions

View File

@@ -105,7 +105,7 @@ void PreviewOperation::executeRegion(rcti *rect, unsigned int /*tileNumber*/)
color[3] = 1.0f;
this->m_input->readSampled(color, rx, ry, COM_PS_NEAREST);
IMB_colormanagement_processor_apply_v4(cm_processor, color);
F4TOCHAR4(color, this->m_outputBuffer + offset);
rgba_float_to_uchar(this->m_outputBuffer + offset, color);
offset += 4;
}
}