mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
Fix some segmentation faults with the GCPadNew configuration dialog.
Also improve the visual appearance in linux. I think I have done so without hurting the appearance in windows. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5348 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -88,7 +88,9 @@ Keyboard::Key::Key(Display* const display, KeyCode keycode)
|
||||
}
|
||||
while (keysym == NoSymbol && i < 8);
|
||||
|
||||
if (keysym == NoSymbol)
|
||||
// 0x0110ffff is the top of the unicode character range according to keysymdef.h
|
||||
// although it is probably more than we need.
|
||||
if (keysym == NoSymbol || keysym > 0x0110ffff)
|
||||
m_keyname = std::string();
|
||||
else
|
||||
m_keyname = std::string(XKeysymToString(keysym));
|
||||
|
Reference in New Issue
Block a user