some code style convention and we should be good

This commit is contained in:
SuperUserNameMan 2024-07-10 12:02:40 +02:00 committed by GitHub
parent 949aa21a7a
commit 3f605e3143
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -220,8 +220,8 @@ void ToggleBorderlessWindowed(void)
glfwSetWindowMonitor(platform.handle, monitors[monitor], 0, 0, mode->width, mode->height, mode->refreshRate); glfwSetWindowMonitor(platform.handle, monitors[monitor], 0, 0, mode->width, mode->height, mode->refreshRate);
// Let's not wait for GLFW to call WindowSizeCallback to update these values : // Let's not wait for GLFW to call WindowSizeCallback to update these values :
CORE.Window.screen.width = mode->width ; CORE.Window.screen.width = mode->width;
CORE.Window.screen.height = mode->height ; CORE.Window.screen.height = mode->height;
// Refocus window // Refocus window
glfwFocusWindow(platform.handle); glfwFocusWindow(platform.handle);
@ -231,16 +231,16 @@ void ToggleBorderlessWindowed(void)
else else
{ {
// Return previous screen size and position // Return previous screen size and position
int prevPosX = CORE.Window.previousPosition.x ; int prevPosX = CORE.Window.previousPosition.x;
int prevPosY = CORE.Window.previousPosition.y ; int prevPosY = CORE.Window.previousPosition.y;
int prevWidth = CORE.Window.previousScreen.width ; int prevWidth = CORE.Window.previousScreen.width;
int prevHeight = CORE.Window.previousScreen.height ; int prevHeight = CORE.Window.previousScreen.height;
glfwSetWindowMonitor(platform.handle, NULL, prevPosX , prevPosY, prevWidth, prevHeight, GLFW_DONT_CARE); glfwSetWindowMonitor(platform.handle, NULL, prevPosX, prevPosY, prevWidth, prevHeight, GLFW_DONT_CARE);
// Let's not wait for GLFW to call WindowSizeCallback to update these values : // Let's not wait for GLFW to call WindowSizeCallback to update these values :
CORE.Window.screen.width = prevWidth ; CORE.Window.screen.width = prevWidth;
CORE.Window.screen.height = prevHeight ; CORE.Window.screen.height = prevHeight;
// Refocus window // Refocus window
glfwFocusWindow(platform.handle); glfwFocusWindow(platform.handle);