Make QImage::mirrored() propagate devicePixelRatio

Change-Id: I2dfeacc941cb411a7ec6752f745fed9d6345ed8a
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
This commit is contained in:
Morten Johan Sorvig 2012-12-10 09:00:14 +01:00 committed by The Qt Project
parent 2119c8f291
commit db25efe78b

View File

@ -4213,6 +4213,7 @@ QImage QImage::mirrored(bool horizontal, bool vertical) const
result.d->colortable = d->colortable;
result.d->has_alpha_clut = d->has_alpha_clut;
result.d->devicePixelRatio = d->devicePixelRatio;
if (depth() == 1)
w = (w+7)/8;