Browse Source

Use array len instead of libctru constant

pull/172/head
Fenrir 9 months ago
parent
commit
ad8b328387
  1. 2
      ctru-rs/src/applets/swkbd.rs

2
ctru-rs/src/applets/swkbd.rs

@ -545,7 +545,7 @@ impl SoftwareKeyboard { @@ -545,7 +545,7 @@ impl SoftwareKeyboard {
for (idx, code_unit) in text
.encode_utf16()
.take(ctru_sys::SWKBD_MAX_BUTTON_TEXT_LEN as _)
.take(button_text.len() - 1)
.chain(once(0))
.enumerate()
{

Loading…
Cancel
Save