From 46f7eb4f8a02ab4fc8513e0a436926369e71cdb7 Mon Sep 17 00:00:00 2001 From: Ada Date: Sun, 24 Sep 2023 22:29:24 +0200 Subject: [PATCH] Fix misaligned text elements in second line --- client/bin/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/bin/src/main.rs b/client/bin/src/main.rs index dbc84dd..651e98c 100644 --- a/client/bin/src/main.rs +++ b/client/bin/src/main.rs @@ -226,7 +226,7 @@ fn render_weather_icon(condition: &Weather, display: &mut UdpDisplay ){ return; } }; - Image::new(&icon_image.unwrap(), Point::new((IMAGE_WIDTH-40) as i32, 0)).draw(display).unwrap(); + Image::new(&icon_image.unwrap(), Point::new((IMAGE_WIDTH-40) as i32, 6)).draw(display).unwrap(); } fn render_clock(display: &mut UdpDisplay){ @@ -281,7 +281,7 @@ fn send_package(ipaddress: String, Text::new(&straba_res.inbound_station, Point::new(1, 25), text_style_station) .draw(&mut display) .unwrap(); - Text::new(&inbound, Point::new(80, 24), text_style) + Text::new(&inbound, Point::new(80, 25), text_style) .draw(&mut display) .unwrap(); }