Compare commits
2 Commits
3cf9cf5392
...
73fca2e983
Author | SHA1 | Date | |
---|---|---|---|
73fca2e983 | |||
530bb7875c |
@ -292,7 +292,10 @@ pub struct SmallLeftDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl SmallLeftDialog {
|
impl SmallLeftDialog {
|
||||||
pub fn new(msg: String) -> SmallLeftDialog {
|
pub fn new(mut msg: String) -> SmallLeftDialog {
|
||||||
|
if !msg.ends_with('\0') {
|
||||||
|
msg.push('\0');
|
||||||
|
}
|
||||||
SmallLeftDialog {
|
SmallLeftDialog {
|
||||||
padding: [0x00004500, 0x45004500],
|
padding: [0x00004500, 0x45004500],
|
||||||
msg: msg,
|
msg: msg,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user