<table><tr><td style="">mglb created this revision.<br />mglb added a reviewer: Konsole.<br />mglb added a project: Konsole.<br />mglb requested review of this revision.
</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/D16033">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When the search bar is visible and user scrolls terminal contents,<br />
(part of) one line is rendered twice. The effect is visible on<br />
semi-transparent pixels (i.e. antialiasing) with some font sizes.</p>
<p>With this patch, the characters which should be painted are calculated<br />
once. It was done for every rect in a paint region separately before.<br />
When two rectangles included different parts of a line, it was drawn<br />
twice. Only part of the line had visual effect visible, as each<br />
rectangle was cleared before rendering.</p>
<p><a href="https://phabricator.kde.org/F6310966" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">F6310966: double-render-bug.png</a></p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">set font to DejaVu Sans Mono 7pt (tested with 96dpi). Other</li>
</ul>
<p>fonts/sizes can work too, just make sure the bottom edge of the search<br />
box is not exactly between lines</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">run <tt style="background: #ebebeb; font-size: 13px;">printf '%3d▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n' $(seq 500)</tt></li>
<li class="remarkup-list-item">open search box</li>
<li class="remarkup-list-item">scroll up/down using mouse wheel</li>
</ul>
<p>Actual result: One line is brighter (painted twice)<br />
Expected result: All boxes should look the same</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br /><div><strong>BRANCH</strong><div><div>arc/Fix-double-render-when-scrolling-with-visible-searchbar (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16033">https://phabricator.kde.org/D16033</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/TerminalDisplay.cpp<br />
src/TerminalDisplay.h</div></div></div><br /><div><strong>To: </strong>mglb, Konsole<br /><strong>Cc: </strong>konsole-devel, herrold, ngraham, maximilianocuria, hindenburg<br /></div>