summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/NetWindow.cpp
diff options
context:
space:
mode:
authorDolphin Bot <dolphin-emu-bot@users.noreply.github.com>2014-09-22 15:46:33 +0200
committerDolphin Bot <dolphin-emu-bot@users.noreply.github.com>2014-09-22 15:46:33 +0200
commitd4952c7637b5e0f820eb2278df9b89c0fb22d819 (patch)
tree0c046faff3b9c33810bd8662307101d836d4aeac /Source/Core/DolphinWX/NetWindow.cpp
parentdd6ebd2228fe4c028838c77e8e8dceb4a1bb92ec (diff)
parentad460a21d7e64fe7fd8a83851d34a6b1695604dc (diff)
Merge pull request #1145 from RachelBryk/buffer
Change netplay buffer SpinCtrl to default to 5.
Diffstat (limited to 'Source/Core/DolphinWX/NetWindow.cpp')
-rw-r--r--Source/Core/DolphinWX/NetWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/NetWindow.cpp b/Source/Core/DolphinWX/NetWindow.cpp
index 5c5f986fab..663af91b2e 100644
--- a/Source/Core/DolphinWX/NetWindow.cpp
+++ b/Source/Core/DolphinWX/NetWindow.cpp
@@ -50,7 +50,7 @@
class wxWindow;
#define NETPLAY_TITLEBAR "Dolphin NetPlay"
-#define INITIAL_PAD_BUFFER_SIZE 20
+#define INITIAL_PAD_BUFFER_SIZE 5
BEGIN_EVENT_TABLE(NetPlayDiag, wxFrame)
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(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);
padbuf_spin->Bind(wxEVT_SPINCTRL, &NetPlayDiag::OnAdjustBuffer, this);
bottom_szr->Add(padbuf_spin, 0, wxCENTER);