Small improvements to the rendered image.
This commit is contained in:
+2
-2
@@ -18,7 +18,7 @@ const TEXT_SIZE: f32 = 160.0; // Size of the font in pixels
|
||||
// Offsets of each part within a line
|
||||
const XOFFSET_ROUTE: u32 = 24;
|
||||
const XOFFSET_DESTINATION: u32 = 300;
|
||||
const XOFFSEET_TIME_LEFT: u32 = 1606;
|
||||
const XOFFSEET_TIME_LEFT: u32 = 1560;
|
||||
const INTER_LINE_OVERLAP: u32 = 15;
|
||||
|
||||
impl Screen<'_> {
|
||||
@@ -39,7 +39,7 @@ impl Screen<'_> {
|
||||
return String::from("Due");
|
||||
}
|
||||
if due_in_mins < 60 {
|
||||
return due_in_mins.to_string() + "min";
|
||||
return due_in_mins.to_string() + " min";
|
||||
}
|
||||
return format!("{:02}:{:02}", (departure_time / 3600) as i32, ((departure_time / 60) % 60) as i32);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user