Initial implementation of attempted mupdf rewrite

This commit is contained in:
itsjunetime
2025-02-06 11:14:47 -07:00
parent e123351079
commit d6102de3c6
8 changed files with 646 additions and 448 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ async fn render_all_files(path: &'static str) -> Vec<PageInfo> {
RenderInfo::Reloaded => (),
RenderInfo::NumPages(num) => fill_default(&mut pages, num),
RenderInfo::Page(page) => {
let num = page.page;
let num = page.page_num;
pages[num] = Some(page);
}
};
+1 -1
View File
@@ -63,7 +63,7 @@ pub fn start_rendering_loop(
Sender<RenderNotif>
) {
let pathbuf = path.as_ref().canonicalize().unwrap();
let str_path = format!("file://{}", pathbuf.into_os_string().to_string_lossy());
let str_path = pathbuf.into_os_string().to_string_lossy().to_string();
let (to_render_tx, from_main_rx) = unbounded();
let (to_main_tx, from_render_rx) = unbounded();