This commit is contained in:
itsjunetime
2026-06-06 19:45:34 -05:00
parent d5abc4bae5
commit 91b923f593
2 changed files with 9 additions and 3 deletions
+8 -2
View File
@@ -4,7 +4,10 @@ use crossterm::terminal::WindowSize;
use flume::{Sender, r#async::RecvStream, unbounded};
use futures_util::stream::StreamExt as _;
use ratatui::layout::Rect;
use ratatui_image::{FontSize, picker::{Picker, ProtocolType}};
use ratatui_image::{
FontSize,
picker::{Picker, ProtocolType}
};
use tdf::{
converter::{ConvertedPage, ConverterMsg, run_conversion_loop},
renderer::{RenderError, RenderInfo, RenderNotif, fill_default, start_rendering}
@@ -54,7 +57,10 @@ pub struct RenderState {
pub to_render_tx: Sender<RenderNotif>
}
const FONT_SIZE: FontSize = FontSize { width: 8, height: 14 };
const FONT_SIZE: FontSize = FontSize {
width: 8,
height: 14
};
pub fn start_rendering_loop(
path: impl AsRef<Path>,