[cairo-commit] pycairo/cairo pycairo-context.c,1.13,1.14

Steve Chaplin commit at pdx.freedesktop.org
Sun Dec 5 07:43:27 PST 2004


Committed by: stevech1097

Update of /cvs/cairo/pycairo/cairo
In directory gabe:/tmp/cvs-serv19871/cairo

Modified Files:
	pycairo-context.c 
Log Message:
SC 05/12/2004

Index: pycairo-context.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/pycairo-context.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- pycairo-context.c	1 Dec 2004 14:44:51 -0000	1.13
+++ pycairo-context.c	5 Dec 2004 15:43:25 -0000	1.14
@@ -134,11 +134,6 @@
     Py_RETURN_NONE;
 }
 
-#if 0
-cairo_set_target_drawable();
-cairo_set_target_image();
-#endif
-
 #ifdef CAIRO_HAS_PS_SURFACE
 static PyObject *
 pycairo_set_target_ps(PyCairoContext *self, PyObject *args)
@@ -666,12 +661,12 @@
 static PyObject *
 pycairo_rel_move_to(PyCairoContext *self, PyObject *args)
 {
-    double x, y;
+    double dx, dy;
 
-    if (!PyArg_ParseTuple(args, "dd:Context.rel_move_to", &x, &y))
+    if (!PyArg_ParseTuple(args, "dd:Context.rel_move_to", &dx, &dy))
 	return NULL;
 
-    cairo_rel_move_to(self->ctx, x, y);
+    cairo_rel_move_to(self->ctx, dx, dy);
     if (pycairo_check_status(cairo_status(self->ctx)))
 	return NULL;
     Py_RETURN_NONE;
@@ -680,12 +675,12 @@
 static PyObject *
 pycairo_rel_line_to(PyCairoContext *self, PyObject *args)
 {
-    double x, y;
+    double dx, dy;
 
-    if (!PyArg_ParseTuple(args, "dd:Context.rel_line_to", &x, &y))
+    if (!PyArg_ParseTuple(args, "dd:Context.rel_line_to", &dx, &dy))
 	return NULL;
 
-    cairo_rel_line_to(self->ctx, x, y);
+    cairo_rel_line_to(self->ctx, dx, dy);
     if (pycairo_check_status(cairo_status(self->ctx)))
 	return NULL;
     Py_RETURN_NONE;
@@ -694,13 +689,13 @@
 static PyObject *
 pycairo_rel_curve_to(PyCairoContext *self, PyObject *args)
 {
-    double x1, y1, x2, y2, x3, y3;
+    double dx1, dy1, dx2, dy2, dx3, dy3;
 
     if (!PyArg_ParseTuple(args, "dddddd:Context.rel_curve_to",
-			  &x1, &y1, &x2, &y2, &x3, &y3))
+			  &dx1, &dy1, &dx2, &dy2, &dx3, &dy3))
 	return NULL;
 
-    cairo_rel_curve_to(self->ctx, x1, y1, x2, y2, x3, y3);
+    cairo_rel_curve_to(self->ctx, dx1, dy1, dx2, dy2, dx3, dy3);
     if (pycairo_check_status(cairo_status(self->ctx)))
 	return NULL;
     Py_RETURN_NONE;




More information about the cairo-commit mailing list