mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
Change netplay buffer SpinCtrl to default to 5.
This commit is contained in:
@ -50,7 +50,7 @@
|
|||||||
class wxWindow;
|
class wxWindow;
|
||||||
|
|
||||||
#define NETPLAY_TITLEBAR "Dolphin NetPlay"
|
#define NETPLAY_TITLEBAR "Dolphin NetPlay"
|
||||||
#define INITIAL_PAD_BUFFER_SIZE 20
|
#define INITIAL_PAD_BUFFER_SIZE 5
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(NetPlayDiag, wxFrame)
|
BEGIN_EVENT_TABLE(NetPlayDiag, wxFrame)
|
||||||
EVT_COMMAND(wxID_ANY, wxEVT_THREAD, NetPlayDiag::OnThread)
|
EVT_COMMAND(wxID_ANY, wxEVT_THREAD, NetPlayDiag::OnThread)
|
||||||
@ -382,7 +382,7 @@ NetPlayDiag::NetPlayDiag(wxWindow* const parent, const CGameListCtrl* const game
|
|||||||
bottom_szr->Add(m_start_btn);
|
bottom_szr->Add(m_start_btn);
|
||||||
|
|
||||||
bottom_szr->Add(new wxStaticText(panel, wxID_ANY, _("Buffer:")), 0, wxLEFT | wxCENTER, 5 );
|
bottom_szr->Add(new wxStaticText(panel, wxID_ANY, _("Buffer:")), 0, wxLEFT | wxCENTER, 5 );
|
||||||
wxSpinCtrl* const padbuf_spin = new wxSpinCtrl(panel, wxID_ANY, "20"
|
wxSpinCtrl* const padbuf_spin = new wxSpinCtrl(panel, wxID_ANY, std::to_string(INITIAL_PAD_BUFFER_SIZE)
|
||||||
, wxDefaultPosition, wxSize(64, -1), wxSP_ARROW_KEYS, 0, 200, INITIAL_PAD_BUFFER_SIZE);
|
, wxDefaultPosition, wxSize(64, -1), wxSP_ARROW_KEYS, 0, 200, INITIAL_PAD_BUFFER_SIZE);
|
||||||
padbuf_spin->Bind(wxEVT_SPINCTRL, &NetPlayDiag::OnAdjustBuffer, this);
|
padbuf_spin->Bind(wxEVT_SPINCTRL, &NetPlayDiag::OnAdjustBuffer, this);
|
||||||
bottom_szr->Add(padbuf_spin, 0, wxCENTER);
|
bottom_szr->Add(padbuf_spin, 0, wxCENTER);
|
||||||
|
Reference in New Issue
Block a user