Commits

pygame  committed c4d9d14

draw primitives have default width

  • Participants
  • Parent commits 436873b

Comments (0)

Files changed (4)

 # BREAK = change breaks existing code
 # BUG	= fixed a bug that was (or could have been) crashing
 
+February 13, 2002
+        all draw primitives have a default width
+
 February 11, 2002
         Rect unionall() and unionall_ip() fixed
 

File docs/index.html

 </li>
 <li><a href=LGPL>LGPL</a> - Gnu lesser general public license</li>
 <li><a href=logos.html>Logos</a> - Pygame Logos
-</li><br>&nbsp;<br><font size=+1><b>Tutorials / Introductions</b></font><br><li><a href=tut/ChimpLineByLine.html>ChimpLineByLine</a> - Line by Line Descriptions of the Chimp Example
+</li><br>&nbsp;<br><font size=+1><b>Tutorials / Introductions</b></font><br><li><a href=tut\ChimpLineByLine.html>ChimpLineByLine</a> - Line by Line Descriptions of the Chimp Example
 </li>
-<li><a href=tut/DisplayModes.html>DisplayModes</a> - Choosing and Configuring Display Modes
+<li><a href=tut\DisplayModes.html>DisplayModes</a> - Choosing and Configuring Display Modes
 </li>
-<li><a href=tut/Executable.html>Executable</a> - Creating a Standalone Windows Executable
+<li><a href=tut\Executable.html>Executable</a> - Creating a Standalone Windows Executable
 </li>
-<li><a href=tut/ImportInit.html>ImportInit</a> - Import and Initialize
+<li><a href=tut\ImportInit.html>ImportInit</a> - Import and Initialize
 </li>
-<li><a href=tut/MoveIt.html>MoveIt</a> - Help! How Do I Move An Image?
+<li><a href=tut\MoveIt.html>MoveIt</a> - Help! How Do I Move An Image?
 </li>
-<li><a href=tut/SpriteIntro.html>SpriteIntro</a> - Sprite Module Introduction
+<li><a href=tut\SpriteIntro.html>SpriteIntro</a> - Sprite Module Introduction
 </li>
-<li><a href=tut/SurfarrayIntro.html>SurfarrayIntro</a> - Introduction to the surfarray module
+<li><a href=tut\SurfarrayIntro.html>SurfarrayIntro</a> - Introduction to the surfarray module
 </li>
-<li><a href=tut/newbieguide.html>Newbieguide</a> - A Newbie Guide To Pygame
+<li><a href=tut\newbieguide.html>Newbieguide</a> - A Newbie Guide To Pygame
 </li>
 <br><hr><br><font size=+1><b>Full Index</b></font><ul>
 <!--FULLINDEX-->

File docs/ref/pygame_draw.html

 
 <a name=circle><font size=+2><b>circle
 </b></font><br><font size=+1><tt>
-pygame.draw.circle(Surface, color, pos, radius, width) -> Rect
+pygame.draw.circle(Surface, color, pos, radius, width=0) -> Rect
 </tt></font><ul>
 Draws a circular shape on the Surface. The given position
 is the center of the circle, and radius is the size. The width
 
 <a name=ellipse><font size=+2><b>ellipse
 </b></font><br><font size=+1><tt>
-pygame.draw.ellipse(Surface, color, Rect, width) -> Rect
+pygame.draw.ellipse(Surface, color, Rect, width=0) -> Rect
 </tt></font><ul>
 Draws an elliptical shape on the Surface. The given rectangle
 is the area that the circle will fill. The width argument is
 
 <a name=polygon><font size=+2><b>polygon
 </b></font><br><font size=+1><tt>
-pygame.draw.polygon(Surface, color, pointslist, width) -> Rect
+pygame.draw.polygon(Surface, color, pointslist, width=0) -> Rect
 </tt></font><ul>
 Draws a polygonal shape on the Surface. The given pointlist
 is the vertices of the polygon. The width argument is
 
 <a name=rect><font size=+2><b>rect
 </b></font><br><font size=+1><tt>
-pygame.draw.rect(Surface, color, Rect, width) -> Rect
+pygame.draw.rect(Surface, color, Rect, width=0) -> Rect
 </tt></font><ul>
 Draws a rectangular shape on the Surface. The given Rect
 is the area of the rectangle. The width argument is
 
 
     /*DOC*/ static char doc_ellipse[] =
-    /*DOC*/    "pygame.draw.ellipse(Surface, color, Rect, width) -> Rect\n"
+    /*DOC*/    "pygame.draw.ellipse(Surface, color, Rect, width=0) -> Rect\n"
     /*DOC*/    "draw an ellipse on a surface\n"
     /*DOC*/    "\n"
     /*DOC*/    "Draws an elliptical shape on the Surface. The given rectangle\n"
 	SDL_Surface* surf;
 	Uint8 rgba[4];
 	Uint32 color;
-	int width, loop, t, l, b, r;
+	int width=0, loop, t, l, b, r;
 
 	/*get all the arguments*/
-	if(!PyArg_ParseTuple(arg, "O!OOi", &PySurface_Type, &surfobj, &colorobj, &rectobj, &width))
+	if(!PyArg_ParseTuple(arg, "O!OO|i", &PySurface_Type, &surfobj, &colorobj, &rectobj, &width))
 		return NULL;
 	rect = GameRect_FromObject(rectobj, &temp);
 	if(!rect)
 
 
     /*DOC*/ static char doc_circle[] =
-    /*DOC*/    "pygame.draw.circle(Surface, color, pos, radius, width) -> Rect\n"
+    /*DOC*/    "pygame.draw.circle(Surface, color, pos, radius, width=0) -> Rect\n"
     /*DOC*/    "draw a circle on a surface\n"
     /*DOC*/    "\n"
     /*DOC*/    "Draws a circular shape on the Surface. The given position\n"
 	Uint8 rgba[4];
 	Uint32 color;
 	int posx, posy, radius, t, l, b, r;
-	int width, loop;
+	int width=0, loop;
 
 	/*get all the arguments*/
-	if(!PyArg_ParseTuple(arg, "O!O(ii)ii", &PySurface_Type, &surfobj, &colorobj, &posx, &posy, &radius, &width))
+	if(!PyArg_ParseTuple(arg, "O!O(ii)i|i", &PySurface_Type, &surfobj, &colorobj, &posx, &posy, &radius, &width))
 		return NULL;
 
 	surf = PySurface_AsSurface(surfobj);
 
 
     /*DOC*/ static char doc_polygon[] =
-    /*DOC*/    "pygame.draw.polygon(Surface, color, pointslist, width) -> Rect\n"
+    /*DOC*/    "pygame.draw.polygon(Surface, color, pointslist, width=0) -> Rect\n"
     /*DOC*/    "draws a polygon on a surface\n"
     /*DOC*/    "\n"
     /*DOC*/    "Draws a polygonal shape on the Surface. The given pointlist\n"
 	SDL_Surface* surf;
 	Uint8 rgba[4];
 	Uint32 color;
-	int width, length, loop, numpoints;
+	int width=0, length, loop, numpoints;
 	int *xlist, *ylist;
 	short x, y, top, left, bottom, right, result;
 
 	/*get all the arguments*/
-	if(!PyArg_ParseTuple(arg, "O!OOi", &PySurface_Type, &surfobj, &colorobj, &points, &width))
+	if(!PyArg_ParseTuple(arg, "O!OO|i", &PySurface_Type, &surfobj, &colorobj, &points, &width))
 		return NULL;
 
 	
 
 
     /*DOC*/ static char doc_rect[] =
-    /*DOC*/    "pygame.draw.rect(Surface, color, Rect, width) -> Rect\n"
+    /*DOC*/    "pygame.draw.rect(Surface, color, Rect, width=0) -> Rect\n"
     /*DOC*/    "draws a rectangle on a surface\n"
     /*DOC*/    "\n"
     /*DOC*/    "Draws a rectangular shape on the Surface. The given Rect\n"
 {
 	PyObject *surfobj, *colorobj, *rectobj, *points, *args, *ret=NULL;
 	GAME_Rect* rect, temp;
-	int t, l, b, r, width;
+	int t, l, b, r, width=0;
 
 	/*get all the arguments*/
-	if(!PyArg_ParseTuple(arg, "O!OOi", &PySurface_Type, &surfobj, &colorobj, &rectobj, &width))
+	if(!PyArg_ParseTuple(arg, "O!OO|i", &PySurface_Type, &surfobj, &colorobj, &rectobj, &width))
 		return NULL;
 
 	if(!(rect = GameRect_FromObject(rectobj, &temp)))