Demo: Fixed typos. (#6247)

This commit is contained in:
Ambrose Bonnaire-Sergeant
2023-03-15 10:55:47 -04:00
committed by GitHub
parent ae4dad09b5
commit 8b6e021f35
2 changed files with 3 additions and 3 deletions

View File

@ -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);