diff --git a/Source/Core/DolphinWX/Src/FrameAui.cpp b/Source/Core/DolphinWX/Src/FrameAui.cpp index d813f70783..c7944ac233 100644 --- a/Source/Core/DolphinWX/Src/FrameAui.cpp +++ b/Source/Core/DolphinWX/Src/FrameAui.cpp @@ -56,9 +56,8 @@ #include // wxWidgets -////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------ // Aui events -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ void CFrame::OnManagerResize(wxAuiManagerEvent& event) { @@ -196,12 +195,10 @@ void CFrame::ToggleConsole(bool _show, int i) // Make sure the check is updated (if wxw isn't calling this func) //GetMenuBar()->FindItem(IDM_CONSOLEWINDOW)->Check(Show); } -////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------ // Notebooks -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ + void CFrame::ClosePages() { DoToggleWindow(IDM_LOGWINDOW, false); @@ -648,14 +645,10 @@ void CFrame::OnDropDownToolbarSelect(wxCommandEvent& event) break; } } -////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------ // Functions -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ void CFrame::ResetToolbarStyle() { @@ -1054,14 +1047,10 @@ void CFrame::AddPane() AddRemoveBlankPage(); m_Mgr->Update(); } -////////////////////////////////////////////////////////////////////////////////////////////////////////////// - - -////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------ // Utility -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ int CFrame::Limit(int i, int Low, int High) { @@ -1266,5 +1255,4 @@ void CFrame::HideAllNotebooks(bool Window) } } m_Mgr->Update(); -} -////////////////////////////////////////////////////////////////////////////////////////////////////////////// \ No newline at end of file +} \ No newline at end of file diff --git a/Source/Core/DolphinWX/Src/Main.cpp b/Source/Core/DolphinWX/Src/Main.cpp index 73df46db8b..92cf4d5552 100644 --- a/Source/Core/DolphinWX/Src/Main.cpp +++ b/Source/Core/DolphinWX/Src/Main.cpp @@ -42,9 +42,9 @@ #include "BootManager.h" -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------ // Main window -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ + IMPLEMENT_APP(DolphinApp) #if defined(HAVE_WX) && HAVE_WX @@ -308,9 +308,9 @@ bool DolphinApp::OnInit() wxPoint(100, 100), wxSize(800, 600), false, UseLogger); } - // --------------------------------------------------- + // ------------ // Check the autoboot options. - // --------------------- + // First check if we have a elf command line. Todo: Should we place this under #if wxUSE_CMDLINE_PARSER? if (LoadElf && ElfFile != wxEmptyString) { @@ -348,12 +348,11 @@ void DolphinApp::OnEndSession() { SConfig::GetInstance().SaveSettings(); } -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------ // Talk to GUI -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ + // g_VideoInitialize.pSysMessage() goes here void Host_SysMessage(const char *fmt, ...) @@ -452,7 +451,7 @@ void Host_UpdateBreakPointView() // Update Wiimote status bar -// ŻŻŻŻŻŻŻŻŻŻŻŻŻ + void Host_UpdateLeds(int led_bits) { // Convert it to a simpler byte format @@ -551,5 +550,4 @@ void Host_SetWiiMoteConnectionState(int _State) wxPostEvent(main_frame, event); } -#endif // HAVE_WX -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// \ No newline at end of file +#endif // HAVE_WX \ No newline at end of file diff --git a/Source/Core/DolphinWX/Src/NetWindow.cpp b/Source/Core/DolphinWX/Src/NetWindow.cpp index f545103d42..1cd5324c05 100644 --- a/Source/Core/DolphinWX/Src/NetWindow.cpp +++ b/Source/Core/DolphinWX/Src/NetWindow.cpp @@ -381,9 +381,12 @@ void NetPlay::OnGUIEvent(wxCommandEvent& event) buffer = ">> "+m_nick+" is now Unready !\n"; m_ready = !m_ready; + m_Disconnect->Enable(!(m_ready)); if (m_isHosting == 1) { + m_ChangeGame->Enable(!(m_ready)); + if (m_numClients > 0) { int buffer_size = (int)buffer.size(); @@ -460,8 +463,7 @@ void NetPlay::OnGUIEvent(wxCommandEvent& event) // TODO : there seems to be a random bug here that i can't reproduce... looked like a loop bug :/ wxString chat_str = wxString::Format(wxT("> %s : %s\n"), wxString(m_nick.c_str(), wxConvUTF8).c_str() , m_Chat->GetValue().c_str() ); int chat_size = (int)chat_str.size(); - int nick_size = m_nick.size(); - if(chat_size-nick_size-6 > 0) + if(chat_size-m_nick.size()-6 > 0) { m_Chat->Clear(); diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp index 73df12ab92..497fd884ab 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp @@ -289,7 +289,6 @@ bool Renderer::Init() } // Decide frambuffer size - // ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ int W = (int)OpenGL_GetBackbufferWidth(), H = (int)OpenGL_GetBackbufferHeight(); if (g_Config.bNativeResolution) { @@ -321,7 +320,6 @@ bool Renderer::Init() // Disable the 2x option if (!g_Config.b2xResolution && (W < 1280 || H < 960)) g_Config.bAllow2xResolution = false; - // ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ if (GL_REPORT_ERROR() != GL_NO_ERROR) bSuccess = false;