diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-06-19 17:06:38 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-06-24 05:31:08 +0000 |
| commit | d6d143e2a6916178d1ea74551617cf8a5cddc39e (patch) | |
| tree | 0601dee6f24bd0c4586619544e9e5e27cca8d77f /terminal.h | |
| parent | sixel: fix cursor positioning logic (diff) | |
sixel: respect sixel aspect ratio
That is, parse P1 when initializing a new sixel, and don’t ignore
pad/pad in the raster attributes command.
The default aspect ratio is 2:1, but most sixels will override it in
the raster attributes command (to 1:1).
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -634,6 +634,15 @@ struct terminal { int height; /* Image height, in pixels */ } image; + /* + * Pan is the vertical shape of a pixel + * Pad is the horizontal shape of a pixel + * + * pan/pad is the sixel’s aspect ratio + */ + int pan; + int pad; + bool scrolling:1; /* Private mode 80 */ bool use_private_palette:1; /* Private mode 1070 */ bool cursor_right_of_graphics:1; /* Private mode 8452 */ |
