remove use of towupper for OS X

This commit is contained in:
Chris Danford
2006-06-11 01:28:52 +00:00
parent fa56d41c17
commit b79cb92052
3 changed files with 11 additions and 3 deletions
+8 -1
View File
@@ -514,9 +514,16 @@ void ScreenNameEntryTraditional::Input( const InputEventPlus &input )
{
int c;
if( input.DeviceI == DeviceInput(DEVICE_KEYBOARD, KEY_BACK) )
{
c = CHAR_BACK;
}
else
c = towupper( INPUTMAN->DeviceButtonToChar(input.DeviceI.button,true) );
{
wchar_t ch = INPUTMAN->DeviceButtonToChar(input.DeviceI.button,true);
MakeUpper( &ch, 1 );
c = ch;
}
if( c )
{
PlayerNumber pn = GAMESTATE->m_MasterPlayerNumber;