Source

pygame / src / constants.c

Diff from to

src/constants.c

     DEC_CONST(GL_ACCUM_GREEN_SIZE);
     DEC_CONST(GL_ACCUM_BLUE_SIZE);
     DEC_CONST(GL_ACCUM_ALPHA_SIZE);
-#if SDL_VERSION_ATLEAST(1, 2, 10)
-    DEC_CONST(GL_SWAP_CONTROL);
-#endif
+
 #if SDL_VERSION_ATLEAST(1, 2, 5)
     DEC_CONST(GL_STEREO);
 #else
     PyModule_AddIntConstant(module, "GL_STEREO", -1);
 #endif
+
+
 #if SDL_VERSION_ATLEAST(1, 2, 6)
     DEC_CONST(GL_MULTISAMPLEBUFFERS);
     DEC_CONST(GL_MULTISAMPLESAMPLES);
     PyModule_AddIntConstant(module, "GL_MULTISAMPLESAMPLES", -1);
 #endif
 
+#if SDL_VERSION_ATLEAST(1, 2, 10)
+    DEC_CONST(GL_SWAP_CONTROL);
+    DEC_CONST(GL_ACCELERATED_VISUAL);
+#else
+    PyModule_AddIntConstant(module, "GL_SWAP_CONTROL", -1);
+    PyModule_AddIntConstant(module, "GL_ACCELERATED_VISUAL", -1);
+#endif
+
+
+#if SDL_VERSION_ATLEAST(1, 2, 13)
+    DEC_CONST(BUTTON_X1);
+    DEC_CONST(BUTTON_X2);
+#else
+    PyModule_AddIntConstant(module, "BUTTON_X1", -1);
+    PyModule_AddIntConstant(module, "BUTTON_X2", -1);
+#endif
+
+
+
+
     DEC_CONSTN(TIMER_RESOLUTION);
     
     DEC_CONSTN(AUDIO_U8);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.