[cairo-commit] 2 commits - src/cairo-ps-surface.c

Adrian Johnson ajohnson at kemper.freedesktop.org
Fri Feb 22 01:13:22 PST 2008


 src/cairo-ps-surface.c |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 0db2c67cc5b29623070465f2cf6eafbff174ed30
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Thu Feb 21 20:51:20 2008 +1030

    PS: Replace gsave/grestore with q/Q

diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c
index d069c33..f8e1901 100644
--- a/src/cairo-ps-surface.c
+++ b/src/cairo-ps-surface.c
@@ -1323,7 +1323,7 @@ static void
 _cairo_ps_surface_end_page (cairo_ps_surface_t *surface)
 {
     _cairo_output_stream_printf (surface->stream,
-				 "grestore\n");
+				 "Q\n");
 }
 
 static cairo_int_status_t
@@ -2080,7 +2080,7 @@ _cairo_ps_surface_emit_meta_surface (cairo_ps_surface_t  *surface,
     _cairo_pdf_operators_set_cairo_to_pdf_matrix (&surface->pdf_operators,
 						  &surface->cairo_to_ps);
     _cairo_output_stream_printf (surface->stream,
-				 "  gsave\n"
+				 "  q\n"
 				 "  0 0 %f %f rectclip\n",
 				 surface->width,
 				 surface->height);
@@ -2100,7 +2100,7 @@ _cairo_ps_surface_emit_meta_surface (cairo_ps_surface_t  *surface,
 	return status;
 
     _cairo_output_stream_printf (surface->stream,
-				 "  grestore\n");
+				 "  Q\n");
     surface->content = old_content;
     surface->width = old_width;
     surface->height = old_height;
@@ -3120,7 +3120,7 @@ _cairo_ps_surface_set_bounding_box (void		*abstract_surface,
 
     _cairo_output_stream_printf (surface->stream,
                                  "%%%%EndPageSetup\n"
-				 "gsave\n");
+				 "q\n");
 
     if (surface->num_pages == 1) {
 	surface->bbox_x1 = x1;
commit 187ace8024ffadc3ee0b69bbd99c52d189cb7be2
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Fri Feb 22 19:36:11 2008 +1030

    PS: Make debug code compile

diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c
index 760ddd2..d069c33 100644
--- a/src/cairo-ps-surface.c
+++ b/src/cairo-ps-surface.c
@@ -2958,7 +2958,7 @@ _cairo_ps_surface_stroke (void			*abstract_surface,
     assert (_cairo_ps_surface_operation_supported (surface, op, source));
 
 #if DEBUG_PS
-    _cairo_output_stream_printf (stream,
+    _cairo_output_stream_printf (surface->stream,
 				 "%% _cairo_ps_surface_stroke\n");
 #endif
 
@@ -2991,7 +2991,7 @@ _cairo_ps_surface_fill (void		*abstract_surface,
     assert (_cairo_ps_surface_operation_supported (surface, op, source));
 
 #if DEBUG_PS
-    _cairo_output_stream_printf (stream,
+    _cairo_output_stream_printf (surface->stream,
 				 "%% _cairo_ps_surface_fill\n");
 #endif
 
@@ -3046,7 +3046,7 @@ _cairo_ps_surface_show_glyphs (void		     *abstract_surface,
     assert (_cairo_ps_surface_operation_supported (surface, op, source));
 
 #if DEBUG_PS
-    _cairo_output_stream_printf (stream,
+    _cairo_output_stream_printf (surface->stream,
 				 "%% _cairo_ps_surface_show_glyphs\n");
 #endif
 


More information about the cairo-commit mailing list