From 8b6e021f358b27de09ca65d58107bdfa6f69209c Mon Sep 17 00:00:00 2001 From: Ambrose Bonnaire-Sergeant Date: Wed, 15 Mar 2023 10:55:47 -0400 Subject: [PATCH] Demo: Fixed typos. (#6247) --- docs/CONTRIBUTING.md | 4 ++-- imgui_demo.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index eba3b65c0..81a6f0e3c 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -2,13 +2,13 @@ ## Index -- [Getting Started & General Advices](#getting-started--general-advices) +- [Getting Started & General Advice](#getting-started--general-advice) - [Issues vs Discussions](#issues-vs-discussions) - [How to open an Issue](#how-to-open-an-issue) - [How to open a Pull Request](#how-to-open-a-pull-request) - [Copyright / Contributor License Agreement](#copyright--contributor-license-agreement) -## Getting Started & General Advices +## Getting Started & General Advice - Article: [How To Ask Good Questions](https://bit.ly/3nwRnx1). - Please browse the [Wiki](https://github.com/ocornut/imgui/wiki) to find code snippets, links and other resources (e.g. [Useful extensions](https://github.com/ocornut/imgui/wiki/Useful-Extensions)). diff --git a/imgui_demo.cpp b/imgui_demo.cpp index c0699d6de..d83daf9d3 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -7443,7 +7443,7 @@ static void ShowExampleAppFullscreen(bool* p_open) static ImGuiWindowFlags flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings; // We demonstrate using the full viewport area or the work area (without menu-bars, task-bars etc.) - // Based on your use case you may want one of the other. + // Based on your use case you may want one or the other. const ImGuiViewport* viewport = ImGui::GetMainViewport(); ImGui::SetNextWindowPos(use_work_area ? viewport->WorkPos : viewport->Pos); ImGui::SetNextWindowSize(use_work_area ? viewport->WorkSize : viewport->Size);