aboutsummaryrefslogtreecommitdiff
path: root/scripts/benchmark.py
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-10-30 18:39:09 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-10-30 18:43:18 +0000
commit2c2a39317be3df4ff9899896067684408526fb29 (patch)
tree653323155f1dacdc42a0c8a7f820e2328258f9a2 /scripts/benchmark.py
parentchore: use MIT license for appstream metadata (diff)
render: never apply alpha to text color
When drawing a block cursor using inversed fg/bg colors, we didn’t strip the alpha from the background color. This meant that the text "behind" the cursor was rendered with transparency. If alpha was set to 0, the text was completely invisible. We should never apply alpha to the text color. So, detect this, and force alpha to 1.0. Normally, when selecting the cursor’s color, we don’t really know _where_ the background color is coming from (or more accurately, _what_ it is). However, the *only* background color that can have a non-1.0 alpha is the *default* background color. This is why we can ignore the bg parameter, and use term->colors.fg/bg instead. Closes #1205
Diffstat (limited to 'scripts/benchmark.py')
0 files changed, 0 insertions, 0 deletions