Debugger: minor format improvements.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
1f14d06790
commit
c01487d0f4
1 changed files with 7 additions and 1 deletions
|
@ -756,7 +756,7 @@ namespace sa2
|
|||
|
||||
void ImGuiSettings::drawDisassemblyTable()
|
||||
{
|
||||
const ImGuiTableFlags flags = ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_BordersV | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_ScrollY;
|
||||
const ImGuiTableFlags flags = ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_ScrollY;
|
||||
if (ImGui::BeginTable("Disassembly", 8, flags))
|
||||
{
|
||||
// weigths proportional to column width (including header)
|
||||
|
@ -797,6 +797,12 @@ namespace sa2
|
|||
const ImU32 currentBgColor = ImGui::GetColorU32(ImVec4(0, 0, 1, 1));
|
||||
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, currentBgColor);
|
||||
}
|
||||
else if (nAddress == g_nDisasmCurAddress)
|
||||
{
|
||||
const ImU32 currentBgColor = ImGui::GetColorU32(ImVec4(0, 0, 0.5, 1));
|
||||
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, currentBgColor);
|
||||
}
|
||||
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::Selectable(line.sAddress, false, ImGuiSelectableFlags_SpanAllColumns);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue