| -rw-r--r-- | Cargo.lock | 1 | ||||
| -rw-r--r-- | Cargo.toml | 5 | ||||
| -rw-r--r-- | src/lib.rs | 10 |
3 files changed, 6 insertions, 10 deletions
@@ -200,7 +200,6 @@ checksum = "6a02dba6a60cd31533cf16561ced53239686d18f1464bff49579dd320fcea081" [[package]] name = "fimg" version = "0.4.50" -source = "git+https://github.com/bend-n/fimg#4cf4670c93a27f30bfdd96929623fe14d187bbf0" dependencies = [ "array_chunks", "atools 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", @@ -6,10 +6,7 @@ edition = "2024" [dependencies] array_chunks = "1.0.0" atools = { git = "https://github.com/bend-n/atools", version = "0.1.7" } -fimg = { git = "https://github.com/bend-n/fimg", features = [ - "save", - "real-show", -] } +fimg = { path = "../fimg", features = ["save", "real-show"] } implicit-fn = "0.1.0" itertools = "0.14.0" lower = "0.2.0" @@ -118,12 +118,12 @@ pub unsafe fn render( // ); for (col, k) in cells.chunks_exact(c as _).zip(0..) { for (&cell, j) in zip(col, 0..) { - let cell: Image<Box<[u8]>, 4> = - Image::<_, 4>::build(fw.ceil() as u32, fh_.ceil() as u32) - .fill(cell.style.bg.join(255)); - + let cell: Image<Box<[u8]>, 3> = + Image::<_, 3>::build(fw.ceil() as u32, fh_.ceil() as u32) + .fill(cell.style.bg); + use fimg::OverlayAtClipping; unsafe { - i.as_mut().overlay_at( + i.as_mut().clipping_overlay_at( &cell, (j as f32 * fw).floor() as u32 // _ + offset_x, |