Null terminated string in demo

This commit is contained in:
Rafael Caricio 2020-04-12 21:18:07 +02:00
parent 0f0a87f3a4
commit 4b3814d6e9

View file

@ -69,7 +69,7 @@ fn main() -> Result<(), String> {
button.set_size(250, 50);
let mut label = lvgl::Label::new(&mut button);
label.set_text("Hello Mundo!");
label.set_text("Hello Mundo!\0");
let mut event_pump = sdl_context.event_pump()?;
'running: loop {