Fix convertToRGBA64PM for Grayscale16
The input has been fetch into a set of uint32s, so no longer a string of ushorts. Pick-to: 6.0 5.15 Fixes: QTBUG-90246 Change-Id: Id52a6824317b0744310008cc2ce2f726539b4c8c Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>bb10
parent
e86e9d0725
commit
ade24763c7
|
|
@ -804,9 +804,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…
Reference in New Issue