2
0
Эх сурвалжийг харах

Fixed type errors in modes test.

Camilla Berglund 13 жил өмнө
parent
commit
88fd170e64
1 өөрчлөгдсөн 2 нэмэгдсэн , 3 устгасан
  1. 2 3
      tests/modes.c

+ 2 - 3
tests/modes.c

@@ -92,7 +92,7 @@ static void key_callback(GLFWwindow dummy, int key, int action)
 
 static void list_modes(void)
 {
-    size_t count, i;
+    int count, i;
     GLFWvidmode desktop_mode;
     GLFWvidmode* modes = glfwGetVideoModes(&count);
 
@@ -114,8 +114,7 @@ static void list_modes(void)
 
 static void test_modes(void)
 {
-    int width, height;
-    size_t i, count;
+    int i, count, width, height;
     GLFWvidmode* modes = glfwGetVideoModes(&count);
 
     glfwSetWindowSizeCallback(window_size_callback);