mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
buildfix
This commit is contained in:
parent
3510454a94
commit
c00339449a
1 changed files with 10 additions and 2 deletions
|
@ -18,7 +18,6 @@
|
||||||
#include <string> // System
|
#include <string> // System
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <functional>
|
|
||||||
#include <wx/spinbutt.h>
|
#include <wx/spinbutt.h>
|
||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
|
@ -43,6 +42,14 @@
|
||||||
#include "Main.h"
|
#include "Main.h"
|
||||||
#include "VideoBackendBase.h"
|
#include "VideoBackendBase.h"
|
||||||
|
|
||||||
|
#if defined(__APPLE__)
|
||||||
|
#include <tr1/functional>
|
||||||
|
using std::tr1::function;
|
||||||
|
#else
|
||||||
|
#include <functional>
|
||||||
|
using std::function;
|
||||||
|
#endif
|
||||||
|
|
||||||
#define TEXT_BOX(page, text) new wxStaticText(page, wxID_ANY, text, wxDefaultPosition, wxDefaultSize)
|
#define TEXT_BOX(page, text) new wxStaticText(page, wxID_ANY, text, wxDefaultPosition, wxDefaultSize)
|
||||||
|
|
||||||
extern CFrame* main_frame;
|
extern CFrame* main_frame;
|
||||||
|
@ -597,7 +604,8 @@ void CConfigMain::CreateGUIControls()
|
||||||
theme_selection->SetSelection(theme_selection->GetCount() - 1);
|
theme_selection->SetSelection(theme_selection->GetCount() - 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
theme_selection->Bind(wxEVT_COMMAND_CHOICE_SELECTED, std::function<void(wxEvent&)>([this,theme_selection](wxEvent&)
|
// std::function = avoid error on msvc
|
||||||
|
theme_selection->Bind(wxEVT_COMMAND_CHOICE_SELECTED, function<void(wxEvent&)>([this,theme_selection](wxEvent&)
|
||||||
{
|
{
|
||||||
SConfig::GetInstance().m_LocalCoreStartupParameter.theme_name = theme_selection->GetStringSelection();
|
SConfig::GetInstance().m_LocalCoreStartupParameter.theme_name = theme_selection->GetStringSelection();
|
||||||
main_frame->InitBitmaps();
|
main_frame->InitBitmaps();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue