[cairo-commit] cairo/src cairo-pattern.c, 1.30, 1.31 cairo-surface.c, 1.56, 1.57

Carl Worth commit at pdx.freedesktop.org
Tue Apr 12 09:14:16 PDT 2005


Committed by: cworth

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv29164/src

Modified Files:
	cairo-pattern.c cairo-surface.c 
Log Message:

        * src/cairo-pattern.c:
        * src/cairo-surface.c: (_cairo_surface_init): Default to
        CAIRO_FILTER_GOOD rather than CAIRO_FILTER_BEST.

        * src/cairo-pattern.c:
        (_cairo_pattern_acquire_surface_for_surface): Optimize to use
        CAIRO_FILTER_NEAREST when the pattern matrix is an integer
        translation.


Index: cairo-pattern.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-pattern.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- cairo-pattern.c	12 Apr 2005 14:57:46 -0000	1.30
+++ cairo-pattern.c	12 Apr 2005 16:14:14 -0000	1.31
@@ -1076,7 +1076,7 @@
 	attr->x_offset = -x;
 	attr->y_offset = -y;
 	attr->extend   = CAIRO_EXTEND_NONE;
-	attr->filter   = CAIRO_FILTER_BEST;
+	attr->filter   = CAIRO_FILTER_GOOD;
 	
 	cairo_matrix_init_identity (&attr->matrix);
     }
@@ -1107,6 +1107,7 @@
 	    cairo_matrix_init_identity (&attr->matrix);
 	    attr->x_offset = tx;
 	    attr->y_offset = ty;
+	    attr->filter = CAIRO_FILTER_NEAREST;
 	}
 	else
 	{

Index: cairo-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-surface.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- cairo-surface.c	12 Apr 2005 14:57:46 -0000	1.56
+++ cairo-surface.c	12 Apr 2005 16:14:14 -0000	1.57
@@ -50,7 +50,7 @@
     _cairo_user_data_array_init (&surface->user_data);
 
     cairo_matrix_init_identity (&surface->matrix);
-    surface->filter = CAIRO_FILTER_BEST;
+    surface->filter = CAIRO_FILTER_GOOD;
     surface->repeat = 0;
 
     surface->device_x_offset = 0;




More information about the cairo-commit mailing list