illume avatar illume committed 839ee4e

pygame.gfxdraw docstrings were not there.

Comments (0)

Files changed (2)

 # BREAK = change breaks existing code
 # BUG    = fixed a bug that was (or could have been) crashing
 
-[SVN 2503-2504] July 13, 2009
+[SVN 2503-2505] July 13, 2009
     [BUG] bugzilla 29, patch to use SDL_VIDEO_DRIVER_X11 DISABLE_X11.  Thanks Robert A. Lerche.
         So can compile pygame without X11 again.
     [BUG] fixed bad midi test.
+    [BUG] pygame.gfxdraw docstrings were not there.  Now... they... are.
 
 [SVN 2491-2495] July 9, 2009
     [BUG] Fixed up quit bug in eventlist.py example.  Thanks Evan Kroske!
 #define PYGAME_SDLGFXPRIM_INTERNAL
 
 #include "pygame.h"
+#include "pygamedocs.h"
 #include "surface.h"
 #include "pgcompat.h"
 #include "SDL_gfx/SDL_gfxPrimitives.h"
 static PyObject* _gfx_beziercolor (PyObject *self, PyObject* args);
 
 static PyMethodDef _gfxdraw_methods[] = {
-    { "pixel", _gfx_pixelcolor, METH_VARARGS, "" },
-    { "hline", _gfx_hlinecolor, METH_VARARGS, "" },
-    { "vline", _gfx_vlinecolor, METH_VARARGS, "" },
-    { "rectangle", _gfx_rectanglecolor, METH_VARARGS, "" },
-    { "box", _gfx_boxcolor, METH_VARARGS, "" },
-    { "line", _gfx_linecolor, METH_VARARGS, "" },
-    { "arc", _gfx_arccolor, METH_VARARGS, "" },
-    { "circle", _gfx_circlecolor, METH_VARARGS, "" },
-    { "aacircle", _gfx_aacirclecolor, METH_VARARGS, "" },
-    { "filled_circle", _gfx_filledcirclecolor, METH_VARARGS, "" },
-    { "ellipse", _gfx_ellipsecolor, METH_VARARGS, "" },
-    { "aaellipse", _gfx_aaellipsecolor, METH_VARARGS, "" },
-    { "filled_ellipse", _gfx_filledellipsecolor, METH_VARARGS, "" },
-    { "pie", _gfx_piecolor, METH_VARARGS, "" },
-    { "trigon", _gfx_trigoncolor, METH_VARARGS, "" },
-    { "aatrigon", _gfx_aatrigoncolor, METH_VARARGS, "" },
-    { "filled_trigon", _gfx_filledtrigoncolor, METH_VARARGS, "" },
-    { "polygon", _gfx_polygoncolor, METH_VARARGS, "" },
-    { "aapolygon", _gfx_aapolygoncolor, METH_VARARGS, "" },
-    { "filled_polygon", _gfx_filledpolygoncolor, METH_VARARGS, "" },
-    { "textured_polygon", _gfx_texturedpolygon, METH_VARARGS, "" },
-    { "bezier", _gfx_beziercolor, METH_VARARGS, "" },
+    { "pixel", _gfx_pixelcolor, METH_VARARGS, DOC_PYGAMEGFXDRAWPIXEL },
+    { "hline", _gfx_hlinecolor, METH_VARARGS, DOC_PYGAMEGFXDRAWHLINE },
+    { "vline", _gfx_vlinecolor, METH_VARARGS, DOC_PYGAMEGFXDRAWVLINE },
+    { "rectangle", _gfx_rectanglecolor, METH_VARARGS, DOC_PYGAMEGFXDRAWRECTANGLE },
+    { "box", _gfx_boxcolor, METH_VARARGS, DOC_PYGAMEGFXDRAWRECTANGLE },
+    { "line", _gfx_linecolor, METH_VARARGS, DOC_PYGAMEGFXDRAWLINE },
+    { "circle", _gfx_circlecolor, METH_VARARGS, DOC_PYGAMEGFXDRAWCIRCLE },
+    { "arc", _gfx_arccolor, METH_VARARGS, DOC_PYGAMEGFXDRAWARC },
+    { "aacircle", _gfx_aacirclecolor, METH_VARARGS, DOC_PYGAMEGFXDRAWAACIRCLE },
+    { "filled_circle", _gfx_filledcirclecolor, METH_VARARGS, DOC_PYGAMEGFXDRAWFILLEDCIRCLE },
+    { "ellipse", _gfx_ellipsecolor, METH_VARARGS, DOC_PYGAMEGFXDRAWELLIPSE },
+    { "aaellipse", _gfx_aaellipsecolor, METH_VARARGS, DOC_PYGAMEGFXDRAWAAELLIPSE },
+    { "filled_ellipse", _gfx_filledellipsecolor, METH_VARARGS, DOC_PYGAMEGFXDRAWFILLEDELLIPSE },
+    { "pie", _gfx_piecolor, METH_VARARGS, DOC_PYGAMEGFXDRAWPIE },
+    { "trigon", _gfx_trigoncolor, METH_VARARGS, DOC_PYGAMEGFXDRAWTRIGON },
+    { "aatrigon", _gfx_aatrigoncolor, METH_VARARGS, DOC_PYGAMEGFXDRAWAATRIGON },
+    { "filled_trigon", _gfx_filledtrigoncolor, METH_VARARGS, DOC_PYGAMEGFXDRAWFILLEDTRIGON },
+    { "polygon", _gfx_polygoncolor, METH_VARARGS, DOC_PYGAMEGFXDRAWPOLYGON },
+    { "aapolygon", _gfx_aapolygoncolor, METH_VARARGS, DOC_PYGAMEGFXDRAWAAPOLYGON },
+    { "filled_polygon", _gfx_filledpolygoncolor, METH_VARARGS, DOC_PYGAMEGFXDRAWFILLEDPOLYGON },
+    { "textured_polygon", _gfx_texturedpolygon, METH_VARARGS, DOC_PYGAMEGFXDRAWTEXTUREDPOLYGON },
+    { "bezier", _gfx_beziercolor, METH_VARARGS, DOC_PYGAMEGFXDRAWBEZIER },
     { NULL, NULL, 0, NULL },
 };
 
 #if PY3
     static struct PyModuleDef _module = {
         PyModuleDef_HEAD_INIT,
-        "gfxdraw",
-        "",
+        MODPREFIX "gfxdraw",
+        DOC_PYGAMEGFXDRAW,
         -1,
         _gfxdraw_methods,
         NULL, NULL, NULL, NULL
 #if PY3
     module = PyModule_Create (&_module);
 #else
-    module = Py_InitModule3 (MODPREFIX "gfxdraw", _gfxdraw_methods, "");
+    module = Py_InitModule3 (MODPREFIX "gfxdraw", _gfxdraw_methods, DOC_PYGAMEGFXDRAW);
 #endif
 
     MODINIT_RETURN (module);
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.