Yet more vertical centering of labels.
This commit is contained in:
parent
1ea4452e9b
commit
3effd9e506
7 changed files with 37 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ void FurnaceGUI::drawStats() {
|
|||
size_t lastProcTime=e->processTime;
|
||||
double maxGot=1000000000.0*(double)e->getAudioDescGot().bufsize/(double)e->getAudioDescGot().rate;
|
||||
String procStr=fmt::sprintf("%.1f%%",100.0*((double)lastProcTime/(double)maxGot));
|
||||
ImGui::AlignTextToFramePadding();
|
||||
ImGui::Text("Audio load");
|
||||
ImGui::SameLine();
|
||||
ImGui::ProgressBar((double)lastProcTime/maxGot,ImVec2(-FLT_MIN,0),procStr.c_str());
|
||||
|
|
@ -47,6 +48,7 @@ void FurnaceGUI::drawStats() {
|
|||
} else {
|
||||
usageStr=fmt::sprintf("%d/%d",usage,capacity);
|
||||
}
|
||||
ImGui::AlignTextToFramePadding();
|
||||
ImGui::Text("%s [%d]", e->getSystemName(e->song.system[i]), j);
|
||||
ImGui::SameLine();
|
||||
ImGui::ProgressBar(((float)usage)/((float)capacity),ImVec2(-FLT_MIN,0),usageStr.c_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue