build: msvc uninitialized variables. (#2239)

MSVC build failing because of a warning treated as an error for
variables being used without initializing even though they are being
passed as references.
This commit is contained in:
paxcut
2025-05-12 01:58:10 -07:00
committed by GitHub
parent 616f34e210
commit 828951ffe9

View File

@@ -985,7 +985,7 @@ namespace hex {
glfwWindowHint(GLFW_MAXIMIZED, initialWindowProperties->maximized);
}
int monitorX, monitorY;
int monitorX = 0, monitorY = 0;
int monitorWidth = std::numeric_limits<int>::max(), monitorHeight = std::numeric_limits<int>::max();
GLFWmonitor *monitor = glfwGetPrimaryMonitor();
if (monitor != nullptr) {