Skip to content

Commit

Permalink
PC yellow background in debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Jul 17, 2024
1 parent 1503b5e commit d80f6c0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions platforms/shared/desktop/gui_debug_disassembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,15 @@ static void show_disassembly(void)
}

if (is_selected)
{
ImGui::SetItemDefaultFocus();
}
else if ((line.address == pc) && !ImGui::IsItemHovered())
{
ImVec2 p_min = ImGui::GetItemRectMin();
ImVec2 p_max = ImGui::GetItemRectMax();
ImGui::GetWindowDrawList()->AddRectFilled(p_min, p_max, ImGui::GetColorU32(dark_yellow));
}

ImVec4 color_segment = line.is_breakpoint ? red : magenta;
ImVec4 color_bank = line.is_breakpoint ? red : violet;
Expand Down

0 comments on commit d80f6c0

Please sign in to comment.