mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 08:18:08 +02: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:
@@ -54,6 +54,10 @@ Detailed list of changes
|
|||||||
|
|
||||||
- macOS: Fix :code:`kitten @ select-window` leaving the keyboard in a partially functional state (:iss:`7074`)
|
- 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]
|
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;
|
if (!make_window_context_current(self->window_id)) return;
|
||||||
self->context_made_current_for_this_command = true;
|
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*
|
static Image*
|
||||||
|
|||||||
Reference in New Issue
Block a user