aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-06-28 17:22:23 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-06-28 17:22:23 +0000
commit1140dd37d3d50f9ef003957f877464005d1ede11 (patch)
treee8d87840d401f40da61f370e65f02c2034dba2bb /render.c
parentMerge branch 'master' into sixel-performance (diff)
sixel: overwrite-by-rectangle: optimize: break out of loop as soon as possible
Since the images are sorted, we can break out of the loop as soon as we detect an image that *ends before* the rectangle's top starts. In order for the row comparisons to work, the row numbers must be re-based against the current scrollback offset, or the scrollback *end*, to be precise.
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions