mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
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:
parent
8c12086beb
commit
e8d9ca4465
2 changed files with 6 additions and 1 deletions
|
|
@ -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]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -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*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue