From d8ccf5d2723c5d8972244373097f1559d7364ffe Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 12 Aug 2012 13:36:52 +0200 Subject: [PATCH 1/3] Formatting. --- tests/tearing.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/tearing.c b/tests/tearing.c index 165ec01c..a8d774a4 100644 --- a/tests/tearing.c +++ b/tests/tearing.c @@ -43,9 +43,7 @@ static void set_swap_interval(GLFWwindow window, int interval) swap_interval = interval; glfwSwapInterval(swap_interval); - sprintf(title, - "Tearing detector (interval %i)", - swap_interval); + sprintf(title, "Tearing detector (interval %i)", swap_interval); glfwSetWindowTitle(window, title); } From 3162f290a6ab487209db9a83a7c2f445f812ed96 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 12 Aug 2012 13:37:12 +0200 Subject: [PATCH 2/3] Fixed float constant type mismatches. --- tests/windows.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/windows.c b/tests/windows.c index 7b1a529c..894febeb 100644 --- a/tests/windows.c +++ b/tests/windows.c @@ -67,8 +67,8 @@ int main(void) glfwMakeContextCurrent(windows[i]); glClearColor((GLclampf) (i & 1), (GLclampf) (i >> 1), - i ? 0.0 : 1.0, - 0.0); + i ? 0.f : 1.f, + 0.f); glfwSetWindowPos(windows[i], 100 + (i & 1) * 300, 100 + (i >> 1) * 300); } From 5ce704e60c882a4f4f220865e79c11361c746e1f Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 12 Aug 2012 16:46:29 +0200 Subject: [PATCH 3/3] Added missing include. --- src/win32_opengl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/win32_opengl.c b/src/win32_opengl.c index fe1898e7..345b7289 100644 --- a/src/win32_opengl.c +++ b/src/win32_opengl.c @@ -30,6 +30,8 @@ #include "internal.h" +#include + //======================================================================== // Initialize WGL-specific extensions