Fix regression in simple RGB16->RGB16 scaling
The fix for QTBUG-35927 introduced a too strict check when scaling from a 16-bit source to a 16-bit destination. This patch changes the limit to adjust to source type. Task-number: QTBUG-54281 Change-Id: I6dd2bb8308f77520c00fa3ef6643a42462c5d351 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
1d034244c2
commit
f968bd665e
@ -134,7 +134,7 @@ void qt_scale_image_16bit(uchar *destPixels, int dbpl,
|
||||
if (yend < 0 || yend >= srch)
|
||||
--h;
|
||||
int xend = (basex + ix * (w - 1)) >> 16;
|
||||
if (xend < 0 || xend >= (int)(sbpl/sizeof(quint32)))
|
||||
if (xend < 0 || xend >= (int)(sbpl/sizeof(SRC)))
|
||||
--w;
|
||||
|
||||
while (h--) {
|
||||
|
Loading…
Reference in New Issue
Block a user