diff options
| author | LLLL Colonq <llll@colonq> | 2025-09-16 01:36:57 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-09-16 01:36:57 -0400 |
| commit | 4ae21efc81f39ca805cefe5c1af722857f22f255 (patch) | |
| tree | d877c34b806c61e9480f1c209fd104fffee43988 /crates/renderer/src/terminal.rs | |
| parent | 4db7ffbaafda249ecafa720e52479d5c7b132edb (diff) | |
Add poster maker
Diffstat (limited to 'crates/renderer/src/terminal.rs')
| -rw-r--r-- | crates/renderer/src/terminal.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<W>(&self, out: &mut W) where W: Write { |
