From 95c7029e1912eba716b754b807be6c7845ba9ba1 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 18 Nov 2013 12:06:39 +0100 Subject: [PATCH] Formatting. --- src/context.c | 2 +- src/window.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/context.c b/src/context.c index a2e872ba..5545278a 100644 --- a/src/context.c +++ b/src/context.c @@ -98,7 +98,7 @@ GLboolean _glfwIsValidContextConfig(_GLFWwndconfig* wndconfig) if (wndconfig->clientAPI == GLFW_OPENGL_API) { - if (wndconfig->glMajor < 1 || wndconfig->glMinor < 0 || + if ((wndconfig->glMajor < 1 || wndconfig->glMinor < 0) || (wndconfig->glMajor == 1 && wndconfig->glMinor > 5) || (wndconfig->glMajor == 2 && wndconfig->glMinor > 1) || (wndconfig->glMajor == 3 && wndconfig->glMinor > 3)) diff --git a/src/window.c b/src/window.c index de75952b..4e2b2770 100644 --- a/src/window.c +++ b/src/window.c @@ -213,10 +213,10 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, window->videoMode.refreshRate = Max(_glfw.hints.refreshRate, 0); } - window->monitor = wndconfig.monitor; - window->resizable = wndconfig.resizable; - window->decorated = wndconfig.decorated; - window->cursorMode = GLFW_CURSOR_NORMAL; + window->monitor = wndconfig.monitor; + window->resizable = wndconfig.resizable; + window->decorated = wndconfig.decorated; + window->cursorMode = GLFW_CURSOR_NORMAL; // Save the currently current context so it can be restored later previous = (_GLFWwindow*) glfwGetCurrentContext();