diff options
| author | LLLL Colonq <llll@colonq> | 2026-09-21 22:44:32 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-09-21 22:44:32 -0400 |
| commit | 44cbef39e79b48481d7a111954cd4367e3d6b9fe (patch) | |
| tree | a6cf4c588f69b068d4cfcae0bdf878281786c796 /crates/renderer/src/terminal.rs | |
| parent | ab5106e978c8c3d5cd2f97f4da1fb9e4275d7f61 (diff) | |
Diffstat (limited to 'crates/renderer/src/terminal.rs')
| -rw-r--r-- | crates/renderer/src/terminal.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/renderer/src/terminal.rs b/crates/renderer/src/terminal.rs index 9f7187b..001e87e 100644 --- a/crates/renderer/src/terminal.rs +++ b/crates/renderer/src/terminal.rs @@ -201,11 +201,12 @@ impl Terminal { for col in 0..self.width { let pos = Pos::new(col as _, row as _); let (p, c) = self.get(pos); - colors.push(c); colors.push(c); + let c4 = glam::Vec4::new(c.x, c.y, c.z, 1.0); + colors.push(c4); colors.push(c4); s += &format!("{}{}", p.first, if let Some(snd) = p.second { snd } else { ' ' }); } s += "\n"; - colors.push(glam::Vec3::new(1.0, 1.0, 1.0)); + colors.push(glam::Vec4::new(1.0, 1.0, 1.0, 1.0)); } self.font.render_text_at(ctx, st, *pos, &s, font::BitmapParams { color: &colors, |
