Fixed jagged lines when drawing scaled image with raster engine.
Task-number: QTBUG-24055 Change-Id: I97a0bf3711e1b4423e2c76ec907c9e2a57522ff9 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
parent
ba1cf5dae3
commit
9c31f6793e
@ -629,8 +629,9 @@ void qt_scale_image_argb32_on_argb32_sse2(uchar *destPixels, int dbpl,
|
||||
int x = 0;
|
||||
|
||||
ALIGNMENT_PROLOGUE_16BYTES(dst, x, w) {
|
||||
uint s = src[(srcx + x*ix) >> 16];
|
||||
uint s = src[srcx >> 16];
|
||||
dst[x] = s + BYTE_MUL(dst[x], qAlpha(~s));
|
||||
srcx += ix;
|
||||
}
|
||||
|
||||
__m128i srcxVector = _mm_set_epi32(srcx, srcx + ix, srcx + ix + ix, srcx + ix + ix + ix);
|
||||
@ -646,7 +647,7 @@ void qt_scale_image_argb32_on_argb32_sse2(uchar *destPixels, int dbpl,
|
||||
}
|
||||
|
||||
for (; x<w; x++) {
|
||||
uint s = src[(srcx + x*ix) >> 16];
|
||||
uint s = src[(basex + x*ix) >> 16];
|
||||
dst[x] = s + BYTE_MUL(dst[x], qAlpha(~s));
|
||||
}
|
||||
dst = (quint32 *)(((uchar *) dst) + dbpl);
|
||||
|
Loading…
Reference in New Issue
Block a user