From 2a8b8e6392d87247a5e7b73773daeece98fa0a73 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Thu, 4 Jun 2026 18:49:58 -0400 Subject: Update --- crates/renderer/src/terminal.rs | 8 ++++++-- 1 file changed, 6 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 cca2de6..9f7187b 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, st: &state::State, pos: &glam::Vec2) { + pub fn render(&self, ctx: &context::Context, st: &mut state::State, pos: &glam::Vec2) { let mut s = String::new(); let mut colors = Vec::new(); for row in 0..self.height { @@ -207,7 +207,11 @@ impl Terminal { s += "\n"; colors.push(glam::Vec3::new(1.0, 1.0, 1.0)); } - self.font.render_text_helper(ctx, st, pos, &s, &colors); + self.font.render_text_at(ctx, st, *pos, &s, font::BitmapParams { + color: &colors, + scale: glam::Vec2::ONE, + offset: glam::Vec2::ZERO, + }); } pub fn write_tty(&self, out: &mut W) where W: Write { -- cgit v1.2.3