Don't convert signed to unsigned when we need all 32bit
authorAllan Sandfeld Jensen <allan.jensen@digia.com>
Wed, 30 Jul 2014 08:47:03 +0000 (10:47 +0200)
committerAllan Sandfeld Jensen <allan.jensen@digia.com>
Wed, 30 Jul 2014 12:46:59 +0000 (14:46 +0200)
commit416272fbc4a6b88433eed7f01a37dd77b02b327f
treefd993523c5d005bee57caca9f9bcc4c3218baa88
parentc7634050d9675006ceb4dd0c17846d18ec0f24c5
Don't convert signed to unsigned when we need all 32bit

The fast scale methods qt_scale_image_16bit and qt_scale_image_32bit
were incorrectly assigning an unsigned value to a signed variable, which
broke their support of images with dimensions from 32384 to 65535.
Images with dimensions higher than that are already using another code-
path.

Backported from change 0afc80c9225ca9630f627fe1aea3d4fd7f958082 in qtbase

Task-number: QTBUG-40297
Change-Id: Ib55f7f9294f03a2f81206130e665af452f8cd085
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
src/gui/painting/qblendfunctions_p.h