More multi-byte display fix

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4750 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
ayuanx
2009-12-29 18:25:45 +00:00
parent 03c45646b4
commit 50139a394b
5 changed files with 15 additions and 15 deletions

View File

@ -48,7 +48,7 @@ void CARCodeAddEdit::CreateGUIControls(int _selection)
}
else
{
currentName = wxString::FromAscii(arCodes.at(_selection).name.c_str());
currentName = wxString(arCodes.at(_selection).name.c_str(), *wxConvCurrent);
tempEntries = arCodes.at(_selection);
}
@ -94,7 +94,7 @@ void CARCodeAddEdit::OnClose(wxCloseEvent& WXUNUSED (event))
void CARCodeAddEdit::ChangeEntry(wxSpinEvent& event)
{
ActionReplay::ARCode currentCode = arCodes.at((int)arCodes.size() - event.GetPosition());
EditCheatName->SetValue(wxString::FromAscii(currentCode.name.c_str()));
EditCheatName->SetValue(wxString(currentCode.name.c_str(), *wxConvCurrent));
UpdateTextCtrl(currentCode);
}