summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Src/Debugger/MemoryView.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2013-04-08 01:16:50 -0400
committerLioncash <mathew1800@gmail.com>2013-04-08 01:16:50 -0400
commit1db10b139cb1f9b92b2e90eb86f236dcd30333b4 (patch)
tree6e1564d368ffabc06196e82d41413fe83082b184 /Source/Core/DolphinWX/Src/Debugger/MemoryView.cpp
parent5b2d9a7d9f80389cd130661c481dcbdf650a724f (diff)
Remove all tab/space mismatches from the DolphinWX project (at least 99%. I promise!)
Also fix up the dangling else's. Shit just looks incredibly ugly in terms of actual structure in the code. I took the liberty of adding comments in FifoPlayerDlg.cpp, LogConfigWindow.cpp, LogWindow.cpp, and FrameAui.cpp to better explain some things. If any comments are wrong, don't hesitate to complain.
Diffstat (limited to 'Source/Core/DolphinWX/Src/Debugger/MemoryView.cpp')
-rw-r--r--Source/Core/DolphinWX/Src/Debugger/MemoryView.cpp30
1 files changed, 16 insertions, 14 deletions
diff --git a/Source/Core/DolphinWX/Src/Debugger/MemoryView.cpp b/Source/Core/DolphinWX/Src/Debugger/MemoryView.cpp
index 14d1aed8c0..f485cac686 100644
--- a/Source/Core/DolphinWX/Src/Debugger/MemoryView.cpp
+++ b/Source/Core/DolphinWX/Src/Debugger/MemoryView.cpp
@@ -90,7 +90,7 @@ void CMemoryView::OnMouseDownL(wxMouseEvent& event)
}
else
{
- debugger->toggleMemCheck(YToAddress(y));
+ debugger->toggleMemCheck(YToAddress(y));
Refresh();
Host_UpdateBreakPointView();
@@ -143,17 +143,17 @@ void CMemoryView::OnPopupMenu(wxCommandEvent& event)
switch (event.GetId())
{
#if wxUSE_CLIPBOARD
- case IDM_COPYADDRESS:
+ case IDM_COPYADDRESS:
wxTheClipboard->SetData(new wxTextDataObject(wxString::Format(_T("%08x"), selection)));
- break;
-
- case IDM_COPYHEX:
- {
- char temp[24];
- sprintf(temp, "%08x", debugger->readExtraMemory(memory, selection));
- wxTheClipboard->SetData(new wxTextDataObject(StrToWxStr(temp)));
- }
- break;
+ break;
+
+ case IDM_COPYHEX:
+ {
+ char temp[24];
+ sprintf(temp, "%08x", debugger->readExtraMemory(memory, selection));
+ wxTheClipboard->SetData(new wxTextDataObject(StrToWxStr(temp)));
+ }
+ break;
#endif
case IDM_TOGGLEMEMORY:
@@ -197,7 +197,7 @@ void CMemoryView::OnMouseDownR(wxMouseEvent& event)
viewAsSubMenu->Append(IDM_VIEWASFP, StrToWxStr("FP value"));
viewAsSubMenu->Append(IDM_VIEWASASCII, StrToWxStr("ASCII"));
viewAsSubMenu->Append(IDM_VIEWASHEX, StrToWxStr("Hex"));
- menu->AppendSubMenu(viewAsSubMenu, StrToWxStr("View As:"));
+ menu->AppendSubMenu(viewAsSubMenu, StrToWxStr("View As:"));
PopupMenu(menu);
}
@@ -212,10 +212,10 @@ void CMemoryView::OnPaint(wxPaintEvent& event)
wxCoord w,h;
dc.GetTextExtent(_T("0WJyq"),&w,&h,NULL,NULL,&hFont);
if (h > rowHeight)
- rowHeight = h;
+ rowHeight = h;
dc.GetTextExtent(_T("0WJyq"),&w,&h,NULL,NULL,&DebuggerFont);
if (h > rowHeight)
- rowHeight = h;
+ rowHeight = h;
if (viewAsType==VIEWAS_HEX)
dc.SetFont(hFont);
@@ -359,7 +359,9 @@ void CMemoryView::OnPaint(wxPaintEvent& event)
curAddress += 32;
}
else
+ {
sprintf(dis, "INVALID VIEWAS TYPE");
+ }
char desc[256] = "";
if (viewAsType != VIEWAS_HEX)