Skip to content

Commit 711165e

Browse files
committed
More formatting
1 parent 5d6deaf commit 711165e

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

src/debugger/window/copper_wnd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,11 @@ void CopperDbgWnd::drawContent() {
211211
ImGui::TableNextColumn();
212212

213213
// col:addr
214-
ImGui::TextColored(uiGetColorF(UiStyle::DisasmWnd_Addr),"%06X", curAddr);
214+
ImGui::TextColored(uiGetColorF(UiStyle::DisasmWnd_Addr), "%06X", curAddr);
215215
ImGui::TableNextColumn();
216216

217217
// col:code bytes
218-
ImGui::TextColored(uiGetColorF(UiStyle::DisasmWnd_OpCodeBytes),"%04X %04X", curEntry.w1, curEntry.w2);
218+
ImGui::TextColored(uiGetColorF(UiStyle::DisasmWnd_OpCodeBytes), "%04X %04X", curEntry.w1, curEntry.w2);
219219
ImGui::TableNextColumn();
220220

221221
// col:instr

src/debugger/window/memory_wnd.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,17 +234,14 @@ void MemoryView::draw_contents(void* mem_data_void, size_t mem_size, size_t base
234234
if (data_editing_addr != (size_t)-1) {
235235
// Move cursor but only apply on next frame so scrolling with be synchronized (because currently we can't
236236
// change the scrolling while the window is being rendered)
237-
if (ImGui::IsKeyPressed(ImGuiKey_UpArrow) &&
238-
(ptrdiff_t)data_editing_addr >= (ptrdiff_t)cols) {
237+
if (ImGui::IsKeyPressed(ImGuiKey_UpArrow) && (ptrdiff_t)data_editing_addr >= (ptrdiff_t)cols) {
239238
data_editing_addr_next = data_editing_addr - cols;
240239
} else if (ImGui::IsKeyPressed(ImGuiKey_DownArrow) &&
241240
(ptrdiff_t)data_editing_addr < (ptrdiff_t)mem_size - cols) {
242241
data_editing_addr_next = data_editing_addr + cols;
243-
} else if (ImGui::IsKeyPressed(ImGuiKey_LeftArrow) &&
244-
(ptrdiff_t)data_editing_addr > (ptrdiff_t)0) {
242+
} else if (ImGui::IsKeyPressed(ImGuiKey_LeftArrow) && (ptrdiff_t)data_editing_addr > (ptrdiff_t)0) {
245243
data_editing_addr_next = data_editing_addr - 1;
246-
} else if (ImGui::IsKeyPressed(ImGuiKey_RightArrow) &&
247-
(ptrdiff_t)data_editing_addr < (ptrdiff_t)mem_size - 1) {
244+
} else if (ImGui::IsKeyPressed(ImGuiKey_RightArrow) && (ptrdiff_t)data_editing_addr < (ptrdiff_t)mem_size - 1) {
248245
data_editing_addr_next = data_editing_addr + 1;
249246
}
250247
}

src/debugger/window/registers_wnd.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ namespace window {
1111
#define REG_D 0x08
1212
#define REG_PC 0x10
1313

14+
// clang-format off
1415
static const char* s_regLookup[] = {
1516
"A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7",
1617
"D0", "D1", "D2", "D3", "D4", "D5", "D6", "D7",
1718
"PC",
1819
};
20+
// clang-format on
1921

2022
void RegistersView::drawContent() {
2123
Debugger* dbg = getDbg();

0 commit comments

Comments
 (0)