mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-14 06:50:29 +02:00
Merge pull request #3732 from unknownbrackets/osk-fix
Write only changed characters from OSK
This commit is contained in:
commit
bd8a4ecfee
1 file changed
+5
-1
@@ -945,7 +945,11 @@ int PSPOskDialog::Update()
|
||||
}
|
||||
|
||||
u16_le *outText = oskParams->fields[0].outtext;
|
||||
for (u32 i = 0, end = oskParams->fields[0].outtextlength; i < end; ++i)
|
||||
size_t end = oskParams->fields[0].outtextlength;
|
||||
// Only write the bytes of the output and the null terminator, don't write the rest.
|
||||
if (end > inputChars.size())
|
||||
end = inputChars.size() + 1;
|
||||
for (size_t i = 0; i < end; ++i)
|
||||
{
|
||||
u16 value = 0;
|
||||
if (i < inputChars.size())
|
||||
|
||||
Reference in new issue
Block a user