Add asm line hover highlight for unknown locations.

In some cases there are many unknown locations next to each other. Having a
hover highlight helps to distinguish one from another.
This commit is contained in:
Bartosz Taudul 2022-08-14 13:40:39 +02:00
parent d5a46f97c1
commit 99a110d5b1
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -3617,6 +3617,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
ImGui::SameLine(); ImGui::SameLine();
startPos = ImGui::GetCursorScreenPos(); startPos = ImGui::GetCursorScreenPos();
TextDisabledUnformatted( "[unknown]" ); TextDisabledUnformatted( "[unknown]" );
if( ImGui::IsItemHovered() ) lineHovered = true;
} }
ImGui::SameLine( 0, 0 ); ImGui::SameLine( 0, 0 );
const auto endPos = ImGui::GetCursorScreenPos(); const auto endPos = ImGui::GetCursorScreenPos();