dirk at hohndel.org
Tue Apr 4 12:12:53 PDT 2017
On Tue, Apr 04, 2017 at 08:48:05PM +0200, Marco Martin wrote:
> On Tuesday 04 April 2017, Dirk Hohndel wrote:
> > This turned out to be an interesting combination of things coming together.
> > Using lring() to round the device pixel ration instead of truncating it is
> > the main culprit, I have added another hack on the existing hack to
> > position the profile correctly and it seems to work for a reasonably large
> > set of possible DPR values that I've tried.
> in my clone i tried to radically simplify the paint function of the profiles
> widget (pretty much, getting rid of it) and just trusting qgraphicsview to
> adapt itself to QT_SCALE_FACTOR
> with that value set to 5 or 6 on the desktop, it seems to still render
> correctly, would need to be tried on android tough
Since the paint function was mostly written by a complete idiot who has no
clue what he was doing and just kept adding hack ontop of hack (that would
be me)... I wouldn't be surprised if it was completely bogus.
So if you have patches that make things simpler, more power to you!
More information about the subsurface