Skip to content

Commit

Permalink
Fixed an issue with MOTD Popup sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
craftycodie committed Nov 22, 2024
1 parent 28142ef commit 39a2c5a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ impl s_blf_chunk_message_of_the_day_popup {
Ok(s_blf_chunk_message_of_the_day_popup {
title_index_identifier,
button_key_wait_time_ms,
title_size: (title.len() * 2) as u32,
header_size: (header.len() * 2) as u32,
button_key_size: (button_key.len() * 2) as u32,
button_key_wait_size: (button_key_wait.len() * 2) as u32,
message_size: (message.len() * 2) as u32,
title_size: (title.chars().count() * 2) as u32,
header_size: (header.chars().count() * 2) as u32,
button_key_size: (button_key.chars().count() * 2) as u32,
button_key_wait_size: (button_key_wait.chars().count() * 2) as u32,
message_size: (message.chars().count() * 2) as u32,
title: StaticWcharString::from_string(&title)?,
header: StaticWcharString::from_string(&header)?,
button_key: StaticWcharString::from_string(&button_key)?,
Expand Down

0 comments on commit 39a2c5a

Please sign in to comment.