Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
@@ -5,7 +5,7 @@ use std::{
|
||||
time::Duration,
|
||||
};
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
use anyhow::{Result, anyhow};
|
||||
use midly::Smf;
|
||||
use raylib::prelude::*;
|
||||
use serialport::SerialPortType;
|
||||
@@ -246,7 +246,7 @@ impl SingerApp {
|
||||
}
|
||||
|
||||
fn draw(&mut self, draw: &mut RaylibDrawHandle<'_>) {
|
||||
draw.clear_background(Color::WHITE);
|
||||
draw.clear_background(Color::BLACK);
|
||||
draw.draw_line_ex(
|
||||
Vector2::new(40.0, 40.0),
|
||||
Vector2::new(100.0, 200.0),
|
||||
@@ -266,7 +266,7 @@ impl SingerApp {
|
||||
Some(name) => format!("Serial connected: {name}"),
|
||||
None => "Serial disconnected".to_string(),
|
||||
};
|
||||
draw.draw_text(&status_text, 44, 14, 22, Color::BLACK);
|
||||
draw.draw_text(&status_text, 44, 14, 22, Color::WHITE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user