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

Fixed uses of renamed symbol.

Camilla Berglund 12 жил өмнө
parent
commit
1f0122e05c
2 өөрчлөгдсөн 3 нэмэгдсэн , 3 устгасан
  1. 2 2
      tests/clipboard.c
  2. 1 1
      tests/events.c

+ 2 - 2
tests/clipboard.c

@@ -56,7 +56,7 @@ static void key_callback(GLFWwindow* window, int key, int action, int mods)
             break;
 
         case GLFW_KEY_V:
-            if (mods == GLFW_MOD_CTRL)
+            if (mods == GLFW_MOD_CONTROL)
             {
                 const char* string;
 
@@ -69,7 +69,7 @@ static void key_callback(GLFWwindow* window, int key, int action, int mods)
             break;
 
         case GLFW_KEY_C:
-            if (mods == GLFW_MOD_CTRL)
+            if (mods == GLFW_MOD_CONTROL)
             {
                 const char* string = "Hello GLFW World!";
                 glfwSetClipboardString(window, string);

+ 1 - 1
tests/events.c

@@ -215,7 +215,7 @@ static const char* get_mods_name(int mods)
 
     if (mods & GLFW_MOD_SHIFT)
         strcat(name, " shift");
-    if (mods & GLFW_MOD_CTRL)
+    if (mods & GLFW_MOD_CONTROL)
         strcat(name, " control");
     if (mods & GLFW_MOD_ALT)
         strcat(name, " alt");