mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-13 11:39:09 +00:00
Attempt to be consistent with conversions between std::string and wxString.
This commit is contained in:
parent
e82d976d2f
commit
56f09d3b91
39 changed files with 344 additions and 300 deletions
|
@ -20,6 +20,7 @@
|
|||
#include <wx/spinctrl.h>
|
||||
|
||||
#include "MsgHandler.h"
|
||||
#include "WxUtils.h"
|
||||
|
||||
template <typename W>
|
||||
class BoolSetting : public W
|
||||
|
@ -99,7 +100,7 @@ protected:
|
|||
else
|
||||
{
|
||||
// Select current backend again
|
||||
choice_backend->SetStringSelection(wxString::FromAscii(g_video_backend->GetName().c_str()));
|
||||
choice_backend->SetStringSelection(StrToWxStr(g_video_backend->GetName().c_str()));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -129,7 +130,7 @@ protected:
|
|||
{
|
||||
const int sel = ev.GetInt();
|
||||
if (sel)
|
||||
vconfig.sPostProcessingShader = ev.GetString().mb_str();
|
||||
vconfig.sPostProcessingShader = WxStrToStr(ev.GetString());
|
||||
else
|
||||
vconfig.sPostProcessingShader.clear();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue