diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-03-15 14:11:44 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-03-18 16:11:26 +0000 |
| commit | cb820a498bc8b9c3823f54d0452c2e5d30de1996 (patch) | |
| tree | af7364cbbf44ef4227606831f4085cbc145c2fa9 /scripts | |
| parent | sixel: trim trailing, fully transparent sixel rows (diff) | |
sixel: RA region does not affect the text cursor position
The raster attributes is, really, just a way to erase an area. And, if
the sixel is transparent, it's a nop.
The final text cursor position depends, not on our image size (which
is based on RA), but on the final graphical cursor position.
However, we do want to continue using it as a hint of the final image
size, to be able to pre-allocate the backing buffer.
So, here's what we do:
* When trimming trailing transparent rows, only trim the *image*, if
the graphical cursor is positioned on the last sixel row, *and* the
sixel is transparent.
* Opaque sixels aren't trimmed at all, since RA in this acts as an
erase that fills the RA region with the background color.
* The graphical cursor position is always adjusted (i.e. trimmed),
since it affects the text cursor position.
* The text cursor position is now calculated from the graphical cursor
position, instead of the image height.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
