Disable text gamma-correction when painting on linear color space
We currently only support full gamma corrected painting by using linear color space images, the text logic however did its own gamma correction on top of that. Change-Id: I4ef41745f4bc1c3a5815426abbcee6968987e70d Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
This commit is contained in:
parent
19faa03620
commit
0ec1884b24
@ -2596,6 +2596,8 @@ void QRasterPaintEngine::alphaPenBlt(const void* src, int bpl, int depth, int rx
|
||||
return;
|
||||
|
||||
QRasterBuffer *rb = d->rasterBuffer.data();
|
||||
if (rb->colorSpace.transferFunction() == QColorSpace::TransferFunction::Linear)
|
||||
useGammaCorrection = false;
|
||||
|
||||
const QRect rect(rx, ry, w, h);
|
||||
const QClipData *clip = d->clip();
|
||||
|
Loading…
x
Reference in New Issue
Block a user