From: Joshua Simmons Date: Wed, 1 May 2024 18:54:54 +0000 (+0200) Subject: shark: Only write two lines of text X-Git-Url: https://git.nega.tv//gitweb.cgi?a=commitdiff_plain;h=7e3df3640762af87e6617edab7d6c9ceeefdbb86;p=josh%2Fnarcissus shark: Only write two lines of text --- diff --git a/title/shark/src/main.rs b/title/shark/src/main.rs index 9f17fc7..00532d2 100644 --- a/title/shark/src/main.rs +++ b/title/shark/src/main.rs @@ -578,11 +578,11 @@ pub fn main() { primitive_instances.clear(); primitive_vertices.clear(); - for line in 0.. { + for line in 0..2 { let (font_family, font_size_px, text) = if line & 1 == 0 { - (FontFamily::RobotoRegular, 14.0, line0) + (FontFamily::RobotoRegular, 22.0, line0) } else { - (FontFamily::NotoSansJapanese, 14.0, line1) + (FontFamily::NotoSansJapanese, 22.0, line1) }; let font = fonts.font(font_family); @@ -591,10 +591,6 @@ pub fn main() { x = 0.0; y += (font.ascent() - font.descent() + font.line_gap()) * scale; - if y > height as f32 { - break; - } - font_size_str.clear(); write!(&mut font_size_str, "{font_size_px}: ").unwrap();