Skip to content

Commit a19b197

Browse files
committed
Add extended ImGui debug panels
1 parent c25e42d commit a19b197

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/core/Core/Application.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ ExitStatus App::Application::run() {
112112
if (ImGui::BeginMenu("View")) {
113113
ImGui::MenuItem("Some Panel", nullptr, &m_show_some_panel);
114114
ImGui::MenuItem("ImGui Demo Panel", nullptr, &m_show_demo_panel);
115-
ImGui::MenuItem("Debug Panel", nullptr, &m_show_debug_panel);
115+
ImGui::MenuItem("Debug Panels", nullptr, &m_show_debug_panel);
116116
ImGui::EndMenu();
117117
}
118118

@@ -133,7 +133,10 @@ ExitStatus App::Application::run() {
133133

134134
// Debug panel
135135
if (m_show_debug_panel) {
136-
ImGui::Begin("Debug panel", &m_show_debug_panel);
136+
ImGui::ShowMetricsWindow();
137+
ImGui::ShowDebugLogWindow();
138+
139+
ImGui::Begin("App debug panel", &m_show_debug_panel);
137140
ImGui::Text("User config path: %s", user_config_path.c_str());
138141
ImGui::Separator();
139142
ImGui::Text("Font path: %s", font_path.c_str());

src/core/Core/Window.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ Window::Window(const Settings& settings) {
2222
size.height,
2323
window_flags);
2424

25-
auto renderer_flags{
26-
static_cast<SDL_RendererFlags>(SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED)};
25+
Uint32 renderer_flags{SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED};
2726
m_renderer = SDL_CreateRenderer(m_window, -1, renderer_flags);
2827

2928
if (m_renderer == nullptr) {

0 commit comments

Comments
 (0)