diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-06-21 09:39:54 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-06-24 05:31:08 +0000 |
| commit | 425cf894d4db5401e069d5f1c76652eb822c131c (patch) | |
| tree | be92cc1e335ffbea9438dafe33eb18e87a1775e2 /sixel.c | |
| parent | sixel: regression: linefeed count for chunked up sixel image (diff) | |
sixel: resize(): handle no size change
Diffstat (limited to 'sixel.c')
| -rw-r--r-- | sixel.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1244,6 +1244,9 @@ resize(struct terminal *term, int new_width, int new_height) const int old_width = term->sixel.image.width; const int old_height = term->sixel.image.height; + if (unlikely(old_width == new_width && old_height == new_height)) + return true; + const int sixel_row_height = 6 * term->sixel.pan; int alloc_new_width = new_width; int alloc_new_height = (new_height + sixel_row_height - 1) / sixel_row_height * sixel_row_height; |
