diff options
| author | blasty <peter@haxx.in> | 2026-08-06 17:02:18 +0200 |
|---|---|---|
| committer | blasty <peter@haxx.in> | 2026-08-06 17:02:18 +0200 |
| commit | b2816e31a1dccc3b7475b8c5e6a8eeb6382fb238 (patch) | |
| tree | 71b9db94a595883f5ed6f7b7cf790e9284829cd4 /tests/test_index.py | |
| parent | help: reach the cheatsheet with H as well as F1 (diff) | |
| download | ida-tui-b2816e31a1dccc3b7475b8c5e6a8eeb6382fb238.tar.gz ida-tui-b2816e31a1dccc3b7475b8c5e6a8eeb6382fb238.tar.xz ida-tui-b2816e31a1dccc3b7475b8c5e6a8eeb6382fb238.zip | |
splash: blasty's transparent logo, and stop guessing the cell aspect
The artwork is now a proper transparent PNG with soft edges (24% of its pixels
carry partial alpha) instead of opaque art on black with a stray full-width
scan line along the bottom. Cropped to its content and resized 1024 -> 768px,
which halves the file and costs nothing visible; logo-trans.png keeps the
master for future re-renders.
Two things the new art exposed, both wrong before it:
fit() assumed cells were 1:2. This terminal reports 9x22, i.e. 1:2.44. The old
logo was 474x516 -- close enough to the assumption that nobody noticed -- but a
square image at the hardcoded 60x33 would have been visibly stretched. The
graphics query now asks for the cell size too (CSI 16 t rides along in the same
round trip, before the DA1 that already synchronises it) and fit() uses the
answer.
The footprint was a constant. logo_cells() derives it from the artwork and the
measured cell size, so the art can be replaced without anyone remembering to
edit a number.
logo.ans was stale: the block-art fallback for terminals that can't draw an
image was still the OLD artwork, scan line included. tools/make_logo_ans.py
regenerates it from logo.png so the two cannot drift again. It understands
alpha -- a transparent cell emits no colour and lets the terminal background
through, and a cell with only one opaque half uses the matching half block so
the pixel lands on the correct side.
Diffstat (limited to 'tests/test_index.py')
0 files changed, 0 insertions, 0 deletions
