diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-03-08 19:38:03 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-08 20:50:56 -0800 |
commit | 44deaf6c5176df3ee8f1277db8ddba2fe3c45cfc (patch) | |
tree | b2584fcba45587315d649a87714a49d614266cc2 /profile-widget/divecartesianaxis.cpp | |
parent | 298235eec78541b1051e6bb1411d98ec98dcebf3 (diff) | |
download | subsurface-44deaf6c5176df3ee8f1277db8ddba2fe3c45cfc.tar.gz |
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>
Diffstat (limited to 'profile-widget/divecartesianaxis.cpp')
0 files changed, 0 insertions, 0 deletions