mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Don't mark windows as write-modified when only reading data.
This commit is contained in:
parent
bee70ee72b
commit
9c49ee3dd3
@ -918,7 +918,7 @@ void SourceView::RenderSimpleSourceView()
|
|||||||
}
|
}
|
||||||
RenderLine( line, lineNum++, 0, 0, 0, nullptr );
|
RenderLine( line, lineNum++, 0, 0, 0, nullptr );
|
||||||
}
|
}
|
||||||
const auto& win = ImGui::GetCurrentWindow();
|
const auto win = ImGui::GetCurrentWindowRead();
|
||||||
m_srcWidth = win->DC.CursorMaxPos.x - win->DC.CursorStartPos.x;
|
m_srcWidth = win->DC.CursorMaxPos.x - win->DC.CursorStartPos.x;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1416,7 +1416,7 @@ void SourceView::RenderSymbolSourceView( uint32_t iptotal, unordered_flat_map<ui
|
|||||||
}
|
}
|
||||||
RenderLine( line, lineNum++, 0, iptotal, ipmax, &worker );
|
RenderLine( line, lineNum++, 0, iptotal, ipmax, &worker );
|
||||||
}
|
}
|
||||||
const auto& win = ImGui::GetCurrentWindow();
|
const auto win = ImGui::GetCurrentWindowRead();
|
||||||
m_srcWidth = win->DC.CursorMaxPos.x - win->DC.CursorStartPos.x;
|
m_srcWidth = win->DC.CursorMaxPos.x - win->DC.CursorStartPos.x;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1443,7 +1443,7 @@ void SourceView::RenderSymbolSourceView( uint32_t iptotal, unordered_flat_map<ui
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto win = ImGui::GetCurrentWindow();
|
const auto win = ImGui::GetCurrentWindowRead();
|
||||||
if( win->ScrollbarY )
|
if( win->ScrollbarY )
|
||||||
{
|
{
|
||||||
auto draw = ImGui::GetWindowDrawList();
|
auto draw = ImGui::GetWindowDrawList();
|
||||||
@ -1689,7 +1689,7 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map<u
|
|||||||
}
|
}
|
||||||
RenderAsmLine( line, 0, iptotal, ipmax, worker, jumpOut, maxAddrLen, view );
|
RenderAsmLine( line, 0, iptotal, ipmax, worker, jumpOut, maxAddrLen, view );
|
||||||
}
|
}
|
||||||
const auto& win = ImGui::GetCurrentWindow();
|
const auto win = ImGui::GetCurrentWindowRead();
|
||||||
m_asmWidth = win->DC.CursorMaxPos.x - win->DC.CursorStartPos.x;
|
m_asmWidth = win->DC.CursorMaxPos.x - win->DC.CursorStartPos.x;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1859,7 +1859,7 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map<u
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
auto win = ImGui::GetCurrentWindow();
|
const auto win = ImGui::GetCurrentWindowRead();
|
||||||
if( win->ScrollbarY )
|
if( win->ScrollbarY )
|
||||||
{
|
{
|
||||||
auto draw = ImGui::GetWindowDrawList();
|
auto draw = ImGui::GetWindowDrawList();
|
||||||
|
@ -1293,7 +1293,7 @@ void View::DrawFrames()
|
|||||||
|
|
||||||
enum { MaxFrameTime = 50 * 1000 * 1000 }; // 50ms
|
enum { MaxFrameTime = 50 * 1000 * 1000 }; // 50ms
|
||||||
|
|
||||||
ImGuiWindow* window = ImGui::GetCurrentWindow();
|
ImGuiWindow* window = ImGui::GetCurrentWindowRead();
|
||||||
if( window->SkipItems ) return;
|
if( window->SkipItems ) return;
|
||||||
|
|
||||||
auto& io = ImGui::GetIO();
|
auto& io = ImGui::GetIO();
|
||||||
@ -2300,7 +2300,7 @@ void View::DrawZones()
|
|||||||
if( m_vd.zvStart == m_vd.zvEnd ) return;
|
if( m_vd.zvStart == m_vd.zvEnd ) return;
|
||||||
assert( m_vd.zvStart < m_vd.zvEnd );
|
assert( m_vd.zvStart < m_vd.zvEnd );
|
||||||
|
|
||||||
if( ImGui::GetCurrentWindow()->SkipItems ) return;
|
if( ImGui::GetCurrentWindowRead()->SkipItems ) return;
|
||||||
|
|
||||||
m_gpuThread = 0;
|
m_gpuThread = 0;
|
||||||
m_gpuStart = 0;
|
m_gpuStart = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user