mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Don't use obsolete ImGui functionality.
This commit is contained in:
parent
6ff9869120
commit
20905406da
@ -952,7 +952,7 @@ static void DrawContents()
|
||||
{
|
||||
memcpy( addr, str.c_str(), str.size() + 1 );
|
||||
}
|
||||
if( ImGui::IsItemHovered() && ImGui::IsKeyPressed( ImGui::GetKeyIndex( ImGuiKey_Delete ), false ) )
|
||||
if( ImGui::IsItemHovered() && ImGui::IsKeyPressed( ImGuiKey_Delete, false ) )
|
||||
{
|
||||
idxRemove = (int)i;
|
||||
}
|
||||
|
@ -1084,7 +1084,7 @@ bool View::DrawImpl()
|
||||
DrawFrames();
|
||||
|
||||
const auto dockspaceId = ImGui::GetID( "tracyDockspace" );
|
||||
ImGui::DockSpace( dockspaceId, ImVec2( 0, 0 ), ImGuiDockNodeFlags_NoDockingInCentralNode );
|
||||
ImGui::DockSpace( dockspaceId, ImVec2( 0, 0 ), ImGuiDockNodeFlags_NoDockingOverCentralNode );
|
||||
if( ImGuiDockNode* node = ImGui::DockBuilderGetCentralNode( dockspaceId ) )
|
||||
{
|
||||
node->LocalFlags |= ImGuiDockNodeFlags_NoTabBar;
|
||||
|
@ -247,7 +247,7 @@ void View::DrawMessageLine( const MessageData& msg, bool hasCallstack, int& idx
|
||||
const auto text = m_worker.GetString( msg.ref );
|
||||
const auto tid = m_worker.DecompressThread( msg.thread );
|
||||
ImGui::PushID( &msg );
|
||||
if( ImGui::Selectable( TimeToStringExact( msg.time ), m_msgHighlight == &msg, ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowItemOverlap ) )
|
||||
if( ImGui::Selectable( TimeToStringExact( msg.time ), m_msgHighlight == &msg, ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowOverlap ) )
|
||||
{
|
||||
CenterAtTime( msg.time );
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ void View::DrawPlayback()
|
||||
changed = true;
|
||||
}
|
||||
changed |= ImGui::SliderInt( "Frame image", &tmp, 1, ficnt, "%d" );
|
||||
ImGui::SetItemUsingMouseWheel();
|
||||
ImGui::SetItemKeyOwner( ImGuiKey_MouseWheelY );
|
||||
if( wheel && ImGui::IsItemHovered() )
|
||||
{
|
||||
if( ImGui::IsItemActive() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user