From 4ae21efc81f39ca805cefe5c1af722857f22f255 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 16 Sep 2025 01:36:57 -0400 Subject: Add poster maker --- crates/renderer/src/terminal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/renderer/src/terminal.rs') diff --git a/crates/renderer/src/terminal.rs b/crates/renderer/src/terminal.rs index 325c108..cca2de6 100644 --- a/crates/renderer/src/terminal.rs +++ b/crates/renderer/src/terminal.rs @@ -194,7 +194,7 @@ impl Terminal { } return (CharPair { first: ' ', second: Some(' ') }, glam::Vec3::new(0.0, 0.0, 0.0)); } - pub fn render(&self, ctx: &context::Context, pos: &glam::Vec2) { + pub fn render(&self, ctx: &context::Context, st: &state::State, pos: &glam::Vec2) { let mut s = String::new(); let mut colors = Vec::new(); for row in 0..self.height { @@ -207,7 +207,7 @@ impl Terminal { s += "\n"; colors.push(glam::Vec3::new(1.0, 1.0, 1.0)); } - self.font.render_text_helper(ctx, pos, &s, &colors); + self.font.render_text_helper(ctx, st, pos, &s, &colors); } pub fn write_tty(&self, out: &mut W) where W: Write { -- cgit v1.2.3