<table><tr><td style="">kossebau created this revision.<br />kossebau added reviewers: Marble, nienhueser, rahn, shentey.</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D2279" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>GeoPainter API had a mixture of int and qreal-based methods, and internally<br />
was inconsistently relaying to int or qreal-based QPainter methods.</p>

<p>Regions used for painting rects and ellipses depend on whether anti-aliasing<br />
is enabled or not, and can result in offsets of at least 1 pixel.<br />
So calculations now tries to respect that.</p>

<p>GeoPainter::regionFromRect() was used for getting the region of pixmaps<br />
being rendered. Especially in non-anti-aliased mode though this does not<br />
match, also is there no stroke-width on painting pixmaps.<br />
A special GeoPainter::regionFromPixmapRect() should serve that purpose now.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rMARBLE Marble</div></div></div><br /><div><strong>BRANCH</strong><div><div>improveGeoPainterAPI</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2279" rel="noreferrer">https://phabricator.kde.org/D2279</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/bindings/python/sip/GeoPainter.sip<br />
src/lib/marble/GeoPainter.cpp<br />
src/lib/marble/GeoPainter.h<br />
src/lib/marble/routing/RoutingLayer.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>kossebau, Marble, nienhueser, rahn, shentey<br /><strong>Cc: </strong>marble-devel<br /></div>