subsurface/qt-mobile
Dirk Hohndel 44deaf6c51 QMLProfile: account for device pixel ratio when transforming the profile
This is turning into the never ending story. The documentation is not helpful,
so this is the result of a ton of trial and error - and I worry that the next
device I try this on will once again break things.

I think the scaling may finally be correct. Take the viewport rectangles
of the profile and the painter, create their ratio, multiply in the device
pixel ratio and the scene size with a little margin added around it.

But the other magic (especially the shifting of the profile on the
painter) makes absolutely no sense to me.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-03-08 20:50:56 -08:00
..
qml QMLProfile: account for device pixel ratio when transforming the profile 2016-03-08 20:50:56 -08:00
qmlmanager.cpp QMLManager: helper function for devivePixelRatio 2016-03-08 20:50:42 -08:00
qmlmanager.h QMLManager: helper function for devivePixelRatio 2016-03-08 20:50:42 -08:00
qmlprofile.cpp QMLProfile: account for device pixel ratio when transforming the profile 2016-03-08 20:50:56 -08:00
qmlprofile.h QMLProfile: correctly track the device pixel ratio 2016-03-08 20:50:47 -08:00