From 99a110d5b1a1e022337af64627552ca271854438 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 14 Aug 2022 13:40:39 +0200 Subject: [PATCH] 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. --- server/TracySourceView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index ddb3c855..b988918c 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -3617,6 +3617,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr ImGui::SameLine(); startPos = ImGui::GetCursorScreenPos(); TextDisabledUnformatted( "[unknown]" ); + if( ImGui::IsItemHovered() ) lineHovered = true; } ImGui::SameLine( 0, 0 ); const auto endPos = ImGui::GetCursorScreenPos();