mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Center elevated privileges warning message.
This commit is contained in:
parent
60f461d94d
commit
d0a7ee1692
@ -931,13 +931,15 @@ static void DrawContents()
|
|||||||
if( s_isElevated )
|
if( s_isElevated )
|
||||||
{
|
{
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
ImGui::TextColored( ImVec4( 1, 0.25f, 0.25f, 1 ), ICON_FA_TRIANGLE_EXCLAMATION " Profiler has elevated privileges! " ICON_FA_TRIANGLE_EXCLAMATION );
|
ImGui::PushStyleColor( ImGuiCol_Text, ImVec4( 1.f, 0.25f, 0.25f, 1.f ) );
|
||||||
|
tracy::TextCentered( ICON_FA_TRIANGLE_EXCLAMATION " Profiler has elevated privileges! " ICON_FA_TRIANGLE_EXCLAMATION );
|
||||||
ImGui::PushFont( s_smallFont );
|
ImGui::PushFont( s_smallFont );
|
||||||
ImGui::TextColored( ImVec4( 1, 0.25f, 0.25f, 1 ), "You are running the profiler interface with admin privileges. This is" );
|
tracy::TextCentered( "You are running the profiler interface with admin privileges. This is" );
|
||||||
ImGui::TextColored( ImVec4( 1, 0.25f, 0.25f, 1 ), "most likely a mistake, as there is no reason to do so. Instead, you" );
|
tracy::TextCentered( "most likely a mistake, as there is no reason to do so. Instead, you" );
|
||||||
ImGui::TextColored( ImVec4( 1, 0.25f, 0.25f, 1 ), "probably wanted to run the client (the application you are profiling)" );
|
tracy::TextCentered( "probably wanted to run the client (the application you are profiling)" );
|
||||||
ImGui::TextColored( ImVec4( 1, 0.25f, 0.25f, 1 ), "with elevated privileges." );
|
tracy::TextCentered( "with elevated privileges." );
|
||||||
ImGui::PopFont();
|
ImGui::PopFont();
|
||||||
|
ImGui::PopStyleColor();
|
||||||
}
|
}
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
ImGui::TextUnformatted( "Client address" );
|
ImGui::TextUnformatted( "Client address" );
|
||||||
|
Loading…
Reference in New Issue
Block a user