Useless return statements.

This commit is contained in:
Pcornat 2022-01-11 22:06:21 +01:00
parent 941a8e98dc
commit c7b6b87005
Signed by: Pcornat
GPG Key ID: 2F3932FF46D9ECA0
1 changed files with 4 additions and 4 deletions

View File

@ -8,10 +8,10 @@
gui::Gui::Gui(gui::GuiData &data) : data(data), font("font/DejaVuSans.ttf") {
SPDLOG_DEBUG("Creating GUI");
ImGui::CreateContext();
(void) ImGui::CreateContext();
ImGui::StyleColorsDark();
ImGui::GetIO().Fonts->AddFontFromFileTTF(font.c_str(), 18.0f);
ImGui_ImplGlfw_InitForOpenGL(data.get_window().get_window().get(), true);
(void) ImGui::GetIO().Fonts->AddFontFromFileTTF(font.c_str(), 18.0f);
(void) ImGui_ImplGlfw_InitForOpenGL(data.get_window().get_window().get(), true);
initialized = ImGui_ImplOpenGL3_Init();
SPDLOG_DEBUG("Initialized: {}", initialized);
}
@ -41,7 +41,7 @@ void gui::Gui::render_gui() {
}
// Never collapsed.
ImGui::Begin("Billy", nullptr, flags);
(void) ImGui::Begin("Billy", nullptr, flags);
ImGui::Text("Hello world!");
ImGui::Text("Average framerate: %.3f ms/frame (%.1f FPS)", 1000.f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate);