Fix convertToRGBA64PM for Grayscale16
The input has been fetch into a set of uint32s, so no longer a string of ushorts. Fixes: QTBUG-90246 Change-Id: Id52a6824317b0744310008cc2ce2f726539b4c8c Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> (cherry picked from commit ade24763c74ce506276218ec1ce0e307301717fe) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
d96f00286c
commit
978131ba71
@ -783,9 +783,8 @@ static const uint *QT_FASTCALL fetchGrayscale16ToRGB32(uint *buffer, const uchar
|
||||
static const QRgba64 *QT_FASTCALL convertGrayscale16ToRGBA64(QRgba64 *buffer, const uint *src, int count,
|
||||
const QList<QRgb> *, QDitherInfo *)
|
||||
{
|
||||
const unsigned short *s = reinterpret_cast<const unsigned short *>(src);
|
||||
for (int i = 0; i < count; ++i)
|
||||
buffer[i] = QRgba64::fromRgba64(s[i], s[i], s[i], 65535);
|
||||
buffer[i] = QRgba64::fromRgba64(src[i], src[i], src[i], 65535);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user