aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-15 13:15:32 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-17 15:57:41 +0000
commit11c7990ec8932b750f20f4d42f2414ba73b68368 (patch)
treecd2409ed4e8515ea27c1dfd8e2b2554bf2195fb8 /render.c
parentMerge branch 'font-scaling-factor-wrong' (diff)
grid: reflow: don’t initialize newly allocated rows
We’re going to write to it immediately anyway. In most cases, *all* newly allocated, and zero-initialized, cells are overwritten. So let’s skip the zero-initialization of the new cells. There are two cases where we need to explicitly clear cells now: * When inserting a hard line break - erase the remaining cells * When done, the *last* row may not have been completely written - erase the remaining cells
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions