Mark debug builds.

This commit is contained in:
Bartosz Taudul 2024-10-14 23:39:54 +02:00
parent 1bd56a93f0
commit 697ea8b3b3
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

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