diff options
| author | Ray <[email protected]> | 2019-12-10 00:18:29 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2019-12-10 00:18:29 +0100 |
| commit | b8246d8592dba4d1f0ee49831f86d99ce0c7dff1 (patch) | |
| tree | ccd2fc3b7d141408cedcd0d5e6c30e4d0ae16853 /src | |
| parent | 7eacac24d53aba1443d54eaa2fd1958bca37dc52 (diff) | |
| download | raylib-b8246d8592dba4d1f0ee49831f86d99ce0c7dff1.tar.gz raylib-b8246d8592dba4d1f0ee49831f86d99ce0c7dff1.zip | |
Minor format tweaks for PR #1036
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -934,7 +934,8 @@ void SetWindowMonitor(int monitor) if ((monitor >= 0) && (monitor < monitorCount)) { TraceLog(LOG_INFO, "Selected fullscreen monitor: [%i] %s", monitor, glfwGetMonitorName(monitors[monitor])); - const GLFWvidmode* mode = glfwGetVideoMode(monitors[monitor]); + + const GLFWvidmode *mode = glfwGetVideoMode(monitors[monitor]); glfwSetWindowMonitor(window, monitors[monitor], 0, 0, mode->width, mode->height, mode->refreshRate); } else TraceLog(LOG_WARNING, "Selected monitor not found"); @@ -2745,9 +2746,8 @@ static bool InitGraphicsDevice(int width, int height) } #if defined(PLATFORM_DESKTOP) - // If we are windowed fullscreen, ensures that window does not minimize - // when focus is lost. - if (screenHeight == displayHeight && screenWidth == displayWidth) + // If we are windowed fullscreen, ensures that window does not minimize when focus is lost + if ((screenHeight == displayHeight) && (screenWidth == displayWidth)) { glfwWindowHint(GLFW_AUTO_ICONIFY, 0); } |
