mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Display total progress also as text.
This commit is contained in:
parent
a7e48bd2a9
commit
3a401106b0
@ -1,3 +1,4 @@
|
||||
#include <inttypes.h>
|
||||
#include <imgui.h>
|
||||
#include "imgui_impl_glfw_gl3.h"
|
||||
#include <stdio.h>
|
||||
@ -189,6 +190,7 @@ int main( int argc, char** argv )
|
||||
ImGui::CloseCurrentPopup();
|
||||
totalProgress = currProgress;
|
||||
}
|
||||
ImGui::Text( "Total progress: %" PRIu64 "/%" PRIu64, currProgress, totalProgress );
|
||||
ImGui::ProgressBar( float( currProgress ) / totalProgress, ImVec2( 200 * dpiScale, 0 ) );
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user