diff --git a/src/core/Core/Application.cpp b/src/core/Core/Application.cpp index 21b7b32..73a3cea 100644 --- a/src/core/Core/Application.cpp +++ b/src/core/Core/Application.cpp @@ -112,7 +112,7 @@ ExitStatus App::Application::run() { if (ImGui::BeginMenu("View")) { ImGui::MenuItem("Some Panel", nullptr, &m_show_some_panel); ImGui::MenuItem("ImGui Demo Panel", nullptr, &m_show_demo_panel); - ImGui::MenuItem("Debug Panel", nullptr, &m_show_debug_panel); + ImGui::MenuItem("Debug Panels", nullptr, &m_show_debug_panel); ImGui::EndMenu(); } @@ -133,7 +133,10 @@ ExitStatus App::Application::run() { // Debug panel if (m_show_debug_panel) { - ImGui::Begin("Debug panel", &m_show_debug_panel); + ImGui::ShowMetricsWindow(); + ImGui::ShowDebugLogWindow(); + + ImGui::Begin("App debug panel", &m_show_debug_panel); ImGui::Text("User config path: %s", user_config_path.c_str()); ImGui::Separator(); ImGui::Text("Font path: %s", font_path.c_str()); diff --git a/src/core/Core/Window.cpp b/src/core/Core/Window.cpp index 0728d51..6965079 100644 --- a/src/core/Core/Window.cpp +++ b/src/core/Core/Window.cpp @@ -22,8 +22,7 @@ Window::Window(const Settings& settings) { size.height, window_flags); - auto renderer_flags{ - static_cast(SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED)}; + Uint32 renderer_flags{SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED}; m_renderer = SDL_CreateRenderer(m_window, -1, renderer_flags); if (m_renderer == nullptr) {