Ver código fonte

Merge branch 'master' of github.com:elmindreda/glfw

Camilla Berglund 13 anos atrás
pai
commit
a9ed5b141e
2 arquivos alterados com 4 adições e 2 exclusões
  1. 2 0
      src/win32_opengl.c
  2. 2 2
      tests/windows.c

+ 2 - 0
src/win32_opengl.c

@@ -30,6 +30,8 @@
 
 
 #include "internal.h"
 #include "internal.h"
 
 
+#include <stdlib.h>
+
 
 
 //========================================================================
 //========================================================================
 // Initialize WGL-specific extensions
 // Initialize WGL-specific extensions

+ 2 - 2
tests/windows.c

@@ -67,8 +67,8 @@ int main(void)
         glfwMakeContextCurrent(windows[i]);
         glfwMakeContextCurrent(windows[i]);
         glClearColor((GLclampf) (i & 1),
         glClearColor((GLclampf) (i & 1),
                      (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);
         glfwSetWindowPos(windows[i], 100 + (i & 1) * 300, 100 + (i >> 1) * 300);
     }
     }