mirror of
https://github.com/joel16/NX-Shell.git
synced 2024-12-04 01:21:59 +00:00
progressbar: Fix indentation
This commit is contained in:
parent
d8b1be755c
commit
663ba14b19
@ -9,11 +9,11 @@
|
|||||||
|
|
||||||
// Todo maybe use a thread to run this?
|
// Todo maybe use a thread to run this?
|
||||||
namespace Popups {
|
namespace Popups {
|
||||||
|
|
||||||
void ProgressBar(float offset, float size, const std::string &title, const std::string &text) {
|
void ProgressBar(float offset, float size, const std::string &title, const std::string &text) {
|
||||||
u64 key = ImGui_ImplSwitch_NewFrame();
|
u64 key = ImGui_ImplSwitch_NewFrame();
|
||||||
ImGui::NewFrame();
|
ImGui::NewFrame();
|
||||||
|
|
||||||
Windows::MainWindow(data, key, true);
|
Windows::MainWindow(data, key, true);
|
||||||
Popups::SetupPopup(title.c_str());
|
Popups::SetupPopup(title.c_str());
|
||||||
|
|
||||||
@ -21,13 +21,13 @@ namespace Popups {
|
|||||||
ImGui::Text(text.c_str());
|
ImGui::Text(text.c_str());
|
||||||
ImGui::ProgressBar(offset/size, ImVec2(0.0f, 0.0f));
|
ImGui::ProgressBar(offset/size, ImVec2(0.0f, 0.0f));
|
||||||
}
|
}
|
||||||
|
|
||||||
Popups::ExitPopup();
|
Popups::ExitPopup();
|
||||||
|
|
||||||
ImGui::Render();
|
ImGui::Render();
|
||||||
glViewport(0, 0, static_cast<int>(ImGui::GetIO().DisplaySize.x), static_cast<int>(ImGui::GetIO().DisplaySize.y));
|
glViewport(0, 0, static_cast<int>(ImGui::GetIO().DisplaySize.x), static_cast<int>(ImGui::GetIO().DisplaySize.y));
|
||||||
glClearColor(0.00f, 0.00f, 0.00f, 1.00f);
|
glClearColor(0.00f, 0.00f, 0.00f, 1.00f);
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
ImGui_ImplSwitch_RenderDrawData(ImGui::GetDrawData());
|
ImGui_ImplSwitch_RenderDrawData(ImGui::GetDrawData());
|
||||||
GUI::SwapBuffers();
|
GUI::SwapBuffers();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user