mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Check for popup background fade animation.
This commit is contained in:
parent
b3e9a03856
commit
c7ec2a9e0e
@ -277,7 +277,14 @@ static void DrawContents()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto& inputQueue = ImGui::GetCurrentContext()->InputEventsQueue;
|
auto ctx = ImGui::GetCurrentContext();
|
||||||
|
if( ctx->DimBgRatio != 0 && ctx->DimBgRatio != 1 )
|
||||||
|
{
|
||||||
|
activeFrames = 3;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
auto& inputQueue = ctx->InputEventsQueue;
|
||||||
if( !inputQueue.empty() )
|
if( !inputQueue.empty() )
|
||||||
{
|
{
|
||||||
for( auto& v : inputQueue )
|
for( auto& v : inputQueue )
|
||||||
@ -290,6 +297,7 @@ static void DrawContents()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if( activeFrames == 0 )
|
if( activeFrames == 0 )
|
||||||
{
|
{
|
||||||
std::this_thread::sleep_for( std::chrono::milliseconds( 16 ) );
|
std::this_thread::sleep_for( std::chrono::milliseconds( 16 ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user