mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 11:43:16 -04:00
[Bugfix] FS#12436 cache mode strings prior to font disable
by checking string len we can cache the USB hid mode strings I guess if the user doesn't have enough glyphs they might still might not get the whole thing but this appears to work with 50 glyphs and the referenced russian language selected remove call to GUI_EVENT_ACTIONUPDATE it is now counterproductive Change-Id: Ica96ed39c7d002fde2d1888e78d2ea18e7c1d61a
This commit is contained in:
parent
ecc72c0df9
commit
dccda8c76f
3 changed files with 16 additions and 4 deletions
|
|
@ -219,7 +219,9 @@ int get_hid_usb_action(void)
|
|||
return action;
|
||||
}
|
||||
|
||||
int keypad_mode_name_get(void)
|
||||
int keypad_mode_name_get(unsigned int mode)
|
||||
{
|
||||
return hid_key_mappings[usb_keypad_mode]->lang_name;
|
||||
if (mode >= ARRAYLEN(hid_key_mappings))
|
||||
return -1;
|
||||
return hid_key_mappings[mode]->lang_name;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue