mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Mark debug builds.
This commit is contained in:
parent
1bd56a93f0
commit
697ea8b3b3
@ -260,6 +260,12 @@ void View::DrawNotificationArea()
|
||||
const auto fps = RealToString( int( io.Framerate + 0.5f ) );
|
||||
const auto fpssz = ImGui::CalcTextSize( fps ).x;
|
||||
ImGui::GetWindowDrawList()->AddText( wpos + ImVec2( w-fpssz, 0 ), 0x88FFFFFF, fps );
|
||||
|
||||
#ifndef NDEBUG
|
||||
const auto dsz = ImGui::CalcTextSize( "8888 DEBUG" ).x;
|
||||
ImGui::GetWindowDrawList()->AddText( wpos + ImVec2( w-dsz, 0 ), 0x886666FF, "DEBUG" );
|
||||
#endif
|
||||
|
||||
ImGui::PopFont();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user