Don't use obsolete ImGui functionality.

This commit is contained in:
Bartosz Taudul 2024-09-18 19:12:47 +02:00
parent 6ff9869120
commit 20905406da
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
4 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;

View File

@ -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 );
}

View File

@ -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() )