From 3f8f7795f93a54eefd45f4136fc5de9942a15cbd Mon Sep 17 00:00:00 2001 From: Tropical <42101043+tropicaaal@users.noreply.github.com> Date: Tue, 10 Mar 2026 00:57:06 -0500 Subject: [PATCH] fix: display a blank screen while the world loads --- 4J.Input/4J_Input.cpp | 17 ----------------- .../UI/Screens/CreateWorldScreen.cpp | 3 +-- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/4J.Input/4J_Input.cpp b/4J.Input/4J_Input.cpp index 4aadc69ea..99ed54adb 100644 --- a/4J.Input/4J_Input.cpp +++ b/4J.Input/4J_Input.cpp @@ -218,23 +218,6 @@ void C_4JInput::Tick(void) { // 6. Mouse buttons (only meaningful when locked in-game) s_mouseLeftCurrent = (glfwGetMouseButton(w, GLFW_MOUSE_BUTTON_LEFT) == GLFW_PRESS); s_mouseRightCurrent = (glfwGetMouseButton(w, GLFW_MOUSE_BUTTON_RIGHT) == GLFW_PRESS); - // if (s_mouseLocked) { - // printf("locked\n"); - // } else { - // // Not locked. Allow a left-click to re-lock (if not in a menu) - // bool lclick = (glfwGetMouseButton(w, GLFW_MOUSE_BUTTON_LEFT) == GLFW_PRESS); - // if (!menuNow && lclick) { - // s_mouseLocked = true; - // glfwSetInputMode(w, GLFW_CURSOR, GLFW_CURSOR_DISABLED); - // if (glfwRawMouseMotionSupported()) - // glfwSetInputMode(w, GLFW_RAW_MOUSE_MOTION, GLFW_TRUE); - // s_mouseAccumX = s_mouseAccumY = 0.0f; - // s_cursorInitialized = false; - // } - // s_mouseLeftCurrent = false; - // s_mouseRightCurrent = false; - // s_frameRelX = s_frameRelY = 0.0f; - // } } // --------------------------------------------------------------------------- diff --git a/Minecraft.Client/UI/Screens/CreateWorldScreen.cpp b/Minecraft.Client/UI/Screens/CreateWorldScreen.cpp index ad71177aa..daf4cd29d 100644 --- a/Minecraft.Client/UI/Screens/CreateWorldScreen.cpp +++ b/Minecraft.Client/UI/Screens/CreateWorldScreen.cpp @@ -95,8 +95,7 @@ void CreateWorldScreen::buttonClicked(Button *button) } else if (button->id == 0) { - // note: code copied from SelectWorldScreen - minecraft->setScreen(NULL); + minecraft->setScreen(new Screen()); // blank screen while the world loads if (done) return; done = true;