1. pygame
  2. Untitled project
  3. pygame

Commits

ab3  committed 0fb27e1

add camera_test

  • Participants
  • Parent commits 733e47e
  • Branches default

Comments (0)

Files changed (2)

File lib/camera.py

View file
 
     elif "linux" in sys.platform:
         use__camera = True
-
+    elif "darwin" in sys.platform:
+        use__camera = True
     else:
         use_opencv = True
 

File src/_camera.c

View file
     free(devices);
     
     return ret_list;
-#else /* Hier komt apple gedoe... */
+#elif defined(__APPLE__)
+    /* Hier komt apple gedoe... */
+    Py_RETURN_NONE;
+#else
 	Py_RETURN_NONE;
 #endif
 }