From 7d6486d30a04c5022c705a63d5263cff2f7a0748 Mon Sep 17 00:00:00 2001 From: Graham Pentheny Date: Mon, 4 Aug 2025 16:50:00 -0400 Subject: [PATCH] Bigger window dimensions --- RecastDemo/Source/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/RecastDemo/Source/main.cpp b/RecastDemo/Source/main.cpp index ffaf63a3..2de5f1d5 100644 --- a/RecastDemo/Source/main.cpp +++ b/RecastDemo/Source/main.cpp @@ -217,8 +217,8 @@ int main(int /*argc*/, char** /*argv*/) SDL_GetCurrentDisplayMode(0, &displayMode); constexpr float aspect = 9.0f / 16.0f; - app.width = displayMode.w - 100; - app.height = static_cast(roundf(static_cast(app.width) * aspect)); + app.width = displayMode.w - 80; + app.height = displayMode.h - 80; // Create the SDL window with OpenGL support app.window = SDL_CreateWindow( @@ -814,12 +814,12 @@ int main(int /*argc*/, char** /*argv*/) } ImGui::EndCombo(); } - - + + if (newTest != currentTest) { currentTest = newTest; - + std::string path = app.testCasesFolder + "/" + app.files[currentTest]; // Load the test.