diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-24 20:59:48 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-24 20:59:48 +0300 |
| commit | c411883ec639c9893ed9c33021c890485e91727b (patch) | |
| tree | 797bb6efdb3a9425e3d8c31953f62452bd564cb1 /src/server/client_shell_graphics.rs | |
| parent | 11a7ab4ae21ab9427bcb44b3be01f62a4ab58c47 (diff) | |
feat!: replace the custom graphics api with optimized native kitty rendering (#4561)
* feat!: replace the custom graphics api with optimized native kitty rendering
* fix: enable safe kitty optimizations automatically
---------
Co-authored-by: JJ Liebig <jonathan.liebig@gmail.com>
Diffstat (limited to 'src/server/client_shell_graphics.rs')
| -rw-r--r-- | src/server/client_shell_graphics.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/client_shell_graphics.rs b/src/server/client_shell_graphics.rs index 00355230..d0af03a9 100644 --- a/src/server/client_shell_graphics.rs +++ b/src/server/client_shell_graphics.rs @@ -1,4 +1,4 @@ -use crate::kitty_graphics::surface::DeliveryCache; +use crate::kitty_graphics::surface::{DeliveryCache, SourceFiles}; use crate::protocol::{ClientShellPopupSurface, SurfaceGraphicsScene}; pub(crate) fn collect_retained( @@ -8,7 +8,7 @@ pub(crate) fn collect_retained( cell_size: crate::kitty_graphics::HostCellSize, delivered: &DeliveryCache, client_id: u64, -) -> Option<(SurfaceGraphicsScene, DeliveryCache)> { +) -> Option<(SurfaceGraphicsScene, DeliveryCache, SourceFiles)> { let rect = |rect: crate::protocol::SurfaceRect| { ratatui::layout::Rect::new(rect.x, rect.y, rect.width, rect.height) }; @@ -52,7 +52,7 @@ pub(crate) fn collect( cell_size: crate::kitty_graphics::HostCellSize, delivered: &DeliveryCache, client_id: u64, -) -> (SurfaceGraphicsScene, DeliveryCache) { +) -> (SurfaceGraphicsScene, DeliveryCache, SourceFiles) { let popup_content_size = popup.map(|popup| (popup.frame.width, popup.frame.height)); crate::kitty_graphics::surface::collect_scene( app, |
