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:
Glenn Rice
2010-04-12 20:41:38 +00:00
parent 0b45b3c7a1
commit 448af895d3
4 changed files with 25 additions and 16 deletions

View File

@ -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));