From 31cfc73a09a8685cbab20502b4bc132e98e2feb5 Mon Sep 17 00:00:00 2001 From: Matthew Parlane Date: Tue, 11 Mar 2014 00:30:55 +1300 Subject: Fixes spacing for "for", "while", "switch" and "if" Also moved && and || to ends of lines instead of start. Fixed misc vertical alignments and some { needed newlining. --- Source/Core/DolphinWX/Frame.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'Source/Core/DolphinWX/Frame.cpp') diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp index 8e3a6ea86c..c7134167cf 100644 --- a/Source/Core/DolphinWX/Frame.cpp +++ b/Source/Core/DolphinWX/Frame.cpp @@ -105,7 +105,7 @@ CPanel::CPanel( switch (nMsg) { case WM_USER: - switch(wParam) + switch (wParam) { case WM_USER_STOP: main_frame->DoStop(); @@ -497,7 +497,7 @@ void CFrame::OnClose(wxCloseEvent& event) } //Stop Dolphin from saving the minimized Xpos and Ypos - if(main_frame->IsIconized()) + if (main_frame->IsIconized()) main_frame->Iconize(false); // Don't forget the skip or the window won't be destroyed @@ -873,8 +873,8 @@ bool TASInputHasFocus() void CFrame::OnKeyDown(wxKeyEvent& event) { - if(Core::GetState() != Core::CORE_UNINITIALIZED && - (RendererHasFocus() || TASInputHasFocus())) + if (Core::GetState() != Core::CORE_UNINITIALIZED && + (RendererHasFocus() || TASInputHasFocus())) { int WiimoteId = -1; // Toggle fullscreen @@ -1045,7 +1045,7 @@ void CFrame::OnMouse(wxMouseEvent& event) #if defined(HAVE_X11) && HAVE_X11 if (Core::GetState() != Core::CORE_UNINITIALIZED) { - if(event.Dragging()) + if (event.Dragging()) X11Utils::SendMotionEvent(X11Utils::XDisplayFromHandle(GetHandle()), event.GetPosition().x, event.GetPosition().y); else @@ -1055,7 +1055,7 @@ void CFrame::OnMouse(wxMouseEvent& event) #endif // next handlers are all for FreeLook, so we don't need to check them if disabled - if(!g_Config.bFreeLook) + if (!g_Config.bFreeLook) { event.Skip(); return; @@ -1066,28 +1066,28 @@ void CFrame::OnMouse(wxMouseEvent& event) static bool mouseMoveEnabled = false; static float lastMouse[2]; - if(event.MiddleDown()) + if (event.MiddleDown()) { lastMouse[0] = event.GetX(); lastMouse[1] = event.GetY(); mouseMoveEnabled = true; } - else if(event.RightDown()) + else if (event.RightDown()) { lastMouse[0] = event.GetX(); lastMouse[1] = event.GetY(); mouseLookEnabled = true; } - else if(event.MiddleUp()) + else if (event.MiddleUp()) { mouseMoveEnabled = false; } - else if(event.RightUp()) + else if (event.RightUp()) { mouseLookEnabled = false; } // no button, so it's a move event - else if(event.GetButton() == wxMOUSE_BTN_NONE) + else if (event.GetButton() == wxMOUSE_BTN_NONE) { if (mouseLookEnabled) { -- cgit v1.2.3