Commits

Anonymous committed e4469ff

Added missing exports to the C API (pgreloaded)

  • Participants
  • Parent commits 593f4a0
  • Branches pgreloaded

Comments (0)

Files changed (3)

src/base/basemod.c

         MODINIT_RETURN(NULL);
     if (PyType_Ready (&PySurface_Type) < 0)
         MODINIT_RETURN(NULL);
+    if (PyType_Ready(&PyGenericFont_Type) < 0)
+        MODINIT_RETURN(NULL);
 
     Py_INCREF (&PyColor_Type);
     Py_INCREF (&PyFRect_Type);
     Py_INCREF (&PyRect_Type);
     Py_INCREF (&PyBufferProxy_Type);
     Py_INCREF (&PySurface_Type);
+    Py_INCREF (&PyGenericFont_Type);
 
 #ifdef IS_PYTHON_3
     mod = PyModule_Create (&_basemodule);
     PyModule_AddObject (mod, "FRect", (PyObject *) &PyFRect_Type);
     PyModule_AddObject (mod, "BufferProxy", (PyObject *) &PyBufferProxy_Type);
     PyModule_AddObject (mod, "Surface", (PyObject *) &PySurface_Type);
+    PyModule_AddObject (mod, "Font", (PyObject *) &PyGenericFont_Type);
     
     /* Setup the pygame exeption */
     PyExc_PyGameError = PyErr_NewException ("base.Error", NULL, NULL);
 /*
   pygame - Python Game Library
-  Copyright (C) 2000-2001 Pete Shinners, 2008 Marcus von Appen
+  Copyright (C) 2000-2001 Pete Shinners
+  Copyright (C) 2008 Marcus von Appen
+  Copyright (C) 2009 Vicent Marti
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public

src/freetype/ft_mod.c

 /*
   pygame - Python Game Library
-  Copyright (C) 2000-2001 Pete Shinners, 2008 Marcus von Appen
+  Copyright (C) 2000-2001 Pete Shinners
+  Copyright (C) 2008 Marcus von Appen
+  Copyright (C) 2009 Vicent Marti
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
 
     /*  
 
-    if (PyType_Ready(&PyFont_Type) < 0)
+    if (PyType_Ready(&PySDLFont_TTF_Type) < 0)
         goto fail;
 
-    Py_INCREF (&PyFont_Type);
-    PyModule_AddObject (mod, "Font", (PyObject *) &PyFont_Type); 
+    Py_INCREF (&PySDLFont_TTF_Type);
+    PyModule_AddObject (mod, "Font", (PyObject *) &PySDLFont_TTF_Type); 
     
     */