Graphics protocol: Improve display of images using unicode placeholders or row/column boxes by resizing them using linear instead of nearest neighbor interpolation on the GPU

Fixes #7070
This commit is contained in:
Kovid Goyal 2024-01-28 08:05:02 +05:30
parent 8c12086beb
commit e8d9ca4465
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 1 deletions

View file

@ -54,6 +54,10 @@ Detailed list of changes
- macOS: Fix :code:`kitten @ select-window` leaving the keyboard in a partially functional state (:iss:`7074`)
- Graphics protocol: Improve display of images using unicode placeholders or
row/column boxes by resizing them using linear instead of nearest neighbor
interpolation on the GPU (:iss:`7070`)
0.32.1 [2024-01-26]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -604,7 +604,8 @@ upload_to_gpu(GraphicsManager *self, Image *img, const bool is_opaque, const boo
if (!make_window_context_current(self->window_id)) return;
self->context_made_current_for_this_command = true;
}
send_image_to_gpu(&img->texture_id, data, img->width, img->height, is_opaque, is_4byte_aligned, false, REPEAT_CLAMP);
// We use linear interpolation as the image may be resized on the GPU if r/c is specified or unicode placeholders are used.
send_image_to_gpu(&img->texture_id, data, img->width, img->height, is_opaque, is_4byte_aligned, true, REPEAT_CLAMP);
}
static Image*