Refactor: Moved one indentation level in the bulk of the ShowMetricsWindow() function. Should appear as a small diff if whitespaces changes are ignored. (#2036)

This commit is contained in:
omar 2018-09-06 11:05:23 +02:00
parent bb3184af74
commit ab64e8f993

View File

@ -8753,8 +8753,11 @@ static void ImeSetInputScreenPosFn_DefaultImpl(int, int) {}
void ImGui::ShowMetricsWindow(bool* p_open) void ImGui::ShowMetricsWindow(bool* p_open)
{ {
if (ImGui::Begin("ImGui Metrics", p_open)) if (!ImGui::Begin("ImGui Metrics", p_open))
{ {
ImGui::End();
return;
}
static bool show_draw_cmd_clip_rects = true; static bool show_draw_cmd_clip_rects = true;
static bool show_window_begin_order = false; static bool show_window_begin_order = false;
ImGuiIO& io = ImGui::GetIO(); ImGuiIO& io = ImGui::GetIO();
@ -8945,7 +8948,6 @@ void ImGui::ShowMetricsWindow(bool* p_open)
overlay_draw_list->AddText(NULL, font_size, window->Pos, IM_COL32(255, 255, 255, 255), buf); overlay_draw_list->AddText(NULL, font_size, window->Pos, IM_COL32(255, 255, 255, 255), buf);
} }
} }
}
ImGui::End(); ImGui::End();
} }