From 0b77b069a4d1d737fcec5f189d9a37dce6aa1ea3 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 19 Oct 2018 09:19:36 +0200 Subject: [PATCH] improve moving hello world in example --- examples/embedded_linux_epd4in2/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/embedded_linux_epd4in2/src/main.rs b/examples/embedded_linux_epd4in2/src/main.rs index 74cfece..871aef0 100644 --- a/examples/embedded_linux_epd4in2/src/main.rs +++ b/examples/embedded_linux_epd4in2/src/main.rs @@ -219,13 +219,13 @@ fn run() -> Result<(), std::io::Error> { println!("Moving Hello World. Loop {} from {}", i, limit); display.draw( - Font6x8::render_str(" Hello World! ") + Font6x8::render_str(" Hello World! ") .with_style(Style { fill_color: Some(Color::White), stroke_color: Some(Color::Black), stroke_width: 0u8, // Has no effect on fonts }) - .translate(Coord::new(5 + i*10, 50)) + .translate(Coord::new(5 + i*12, 50)) .into_iter(), );