All pastes #909852 Raw Edit

Stuff

public text v1 · immutable
·published 2008-02-19 15:49 UTC
rendered paste body
Index: moon-path.c
===================================================================
--- moon-path.c (revision 96150)
+++ moon-path.c (working copy)
@@ -641,7 +641,7 @@
 void
 cairo_path_display (cairo_path_t *path)
 {
-#if FALSE
+#if TRUE
        int i = 0;
        g_warning ("path %p status %d, num_data %d", path, path->status, path->num_data);
        for (; i < path->num_data; i+= path->data[i].header.length) {
Index: shape.cpp
===================================================================
--- shape.cpp   (revision 96149)
+++ shape.cpp   (working copy)
@@ -2114,7 +2114,12 @@
 Path::Draw (cairo_t *cr)
 {
        cairo_new_path (cr);
-
+  cairo_move_to (cr, -18.4415, 98.2848);
+  cairo_curve_to (cr, -69.1964, 88.7615, -104.352, 42.1582, -99.5703, -9.26054);
+  cairo_curve_to (cr, -94.7881, -60.6793, -51.6406, -100, -8.34888e-14, -100);
+  cairo_line_to (cr, 0, 0);
+  cairo_path_display (cairo_copy_path (cr));
+#if FALSE
        Geometry* geometry = path_get_data (this);
        if (!geometry)
                return;
@@ -2123,6 +2128,7 @@
        cairo_transform (cr, &stretch_transform);
        geometry->Draw (this, cr);
        cairo_restore (cr);
+#endif
 }

 void