Skip to content

Commit

Permalink
fix: #280 (#315)
Browse files Browse the repository at this point in the history
* fix: phira-monitor

* fix: touch button when fading

---------

Co-authored-by: Licapule <licapule@qq.com>
  • Loading branch information
Licapule and Licapule authored May 8, 2024
1 parent 5b21367 commit 98fcacc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phira-monitor/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async fn the_main() -> Result<()> {
let _guard = rt.enter();

let font = FontArc::try_from_vec(load_file("font.ttf").await?)?;
let mut painter = TextPainter::new(font);
let mut painter = TextPainter::new(font, None);

let config: Config = (|| -> Result<Config> { Ok(serde_yaml::from_reader(File::open("monitor-config.yml")?)?) })().context("读取配置失败")?;

Expand Down

0 comments on commit 98fcacc

Please sign in to comment.