<table><tr><td style="">davidedmundson created this revision.<br />Restricted Application added a subscriber: Okular.<br />Restricted Application added a project: Okular.
</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/D8980" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>in drawPixmap(source, sourceRect) the source rect is in native pixels.</p>

<p>In this code the size was scaled by the DPR, but the location was not.<br />
blendRect is the contents of a selection rectangle, offset from the<br />
bounding darker blue rectangle. Hence we haven't really noticed.</p>

<p>This completely fixes the rectangle when the scale == 2.0/3.0</p>

<p>Some smaller artifacts remain on fractional scale factors, which is a<br />
separate code bug with the same symptoms.</p>

<p>CCBUG: 386111</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>BRANCH</strong><div><div>scaling_fixes</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8980" rel="noreferrer">https://phabricator.kde.org/D8980</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>ui/pageview.cpp</div></div></div><br /><div><strong>To: </strong>davidedmundson<br /><strong>Cc: </strong>Okular, gassaf, ngraham, aacid<br /></div>