mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
software_keyboard: Use correct offset for inital text string
This commit is contained in:
parent
ea680bea60
commit
96535c13a5
@ -63,7 +63,8 @@ void SoftwareKeyboard::Initialize(std::queue<std::shared_ptr<IStorage>> storage_
|
||||
return;
|
||||
|
||||
std::vector<char16_t> string(config.initial_string_size);
|
||||
std::memcpy(string.data(), work_buffer.data() + 4, string.size() * 2);
|
||||
std::memcpy(string.data(), work_buffer.data() + config.initial_string_offset,
|
||||
string.size() * 2);
|
||||
initial_text = Common::UTF16StringFromFixedZeroTerminatedBuffer(string.data(), string.size());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user