diff --git a/Cargo.lock b/Cargo.lock index 3622e61..c9ff1be 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -21,7 +21,7 @@ dependencies = [ [[package]] name = "latency-slider-de" -version = "0.3.1" +version = "0.3.2" dependencies = [ "ninput", "once_cell", diff --git a/Cargo.toml b/Cargo.toml index b85c0e6..f639a72 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "latency-slider-de" -version = "0.3.1" +version = "0.3.2" authors = [] edition = "2021" diff --git a/src/lib.rs b/src/lib.rs index 248b13c..da33e6c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -211,11 +211,11 @@ unsafe fn draw_ui(root_pane: &Pane) { } else if let (Some(x), Some(y)) = (vip_pane_00, vip_pane_01) { let s = if !STEALTH_MODE { if CURRENT_INPUT_BUFFER != -1 { - format!("Input Latency: {}", CURRENT_INPUT_BUFFER) + format!("Input Latency: {}\0", CURRENT_INPUT_BUFFER) } else if MOST_RECENT_AUTO == -1 { - "Input Latency: Auto".to_string() + "Input Latency: Auto\0".to_string() } else { - format!("Input Latency: Auto ({})", MOST_RECENT_AUTO) + format!("Input Latency: Auto ({})\0", MOST_RECENT_AUTO) } } else { ORIG_VIP_TEXT.clone()