aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-08-10 16:33:18 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-08-11 16:26:00 +0000
commit41a8f2fc6556e7b8c9832ede21c6b45f624207cf (patch)
treee4943da3465d407c002cd635f9063c0d34a4a4da /scripts
parentMerge branch 'uri-characters' (diff)
render: run the “overflowing glyphs” prepass *before* rendering sixels
This fixes an issue where the left-most column of a sixel was “overwritten” by the cell content. This patch also rewrites the prepass logic, to try to reduce the number of loads performed. The new logic loops each row from left to right, looking for dirty cells. When a dirty cell is found, we first scan backwards, until we find a non-overflowing cell. That cell is unaffected by the overflowing cell we’re currently dealing with. We can also stop as soon as we see a dirty cell, since that cell will already have been dealt with. Then, we scan forward, dirtying cells until we see a non-overflowing cell. That first non-overflowing cell is also dirtied, but after that we break. The last loop, that scans forward, advances the same cell pointer used in the outer loop.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions