summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qxbmhandler_p.h
diff options
context:
space:
mode:
authorLucile Quirion <lucile.quirion@savoirfairelinux.com>2014-05-01 13:50:15 -0400
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-04 06:03:25 +0200
commita5bba1f9da376840d92f2008d8ba8433753b1847 (patch)
treec782e50d86301a882eb51269c8348c930d571192 /src/gui/image/qxbmhandler_p.h
parent8e48707cea01f5c456cd554d2628d2b4f59ca1fc (diff)
[blitter] Initialize m_devicePixelRatio to fix crash
When using directfb platform the drawing of some widgets (e.g. Toolbar) would crash the application. Pixmap device pixel ratio can be used in QCommonStyle::drawControl() as a denominator to calculate pixmap width or size. The drawing of some widgets (e.g. Toolbar) would fail the assertion of a non-zero denominator. This commit initializes the device pixel ratio when generating BlitterClass pixmaps and makes QBlittablePlatformPixmap::metric( PdmDevicePixelRatio) return devicePixelRatio() instead of 1. Task-number: QTBUG-38709 Change-Id: Ia8b96c5341b5ac1297c483deed1c695846398b88 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/gui/image/qxbmhandler_p.h')
0 files changed, 0 insertions, 0 deletions