[cairo-commit] cairo-5c/examples graph.5c,1.3,1.4

Keith Packard commit at pdx.freedesktop.org
Mon Mar 14 13:43:08 PST 2005


Committed by: keithp

Update of /cvs/cairo/cairo-5c/examples
In directory gabe:/tmp/cvs-serv26455/examples

Modified Files:
	graph.5c 
Log Message:
2005-03-14  Keith Packard  <keithp at keithp.com>

	* cairo-5c.h:
	Must explicitly reference desired backends
	
	* pattern.c: (do_Cairo_current_pattern), (create_surface_from_png):
	Switch from deprecated functions to current ones
	
	* text.c: (do_Cairo_set_font):
	Fix sizing from supplied pattern
	
	* examples/graph.5c:
	metrics got fixed.


Index: graph.5c
===================================================================
RCS file: /cvs/cairo/cairo-5c/examples/graph.5c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- graph.5c	23 Dec 2004 22:39:40 -0000	1.3
+++ graph.5c	14 Mar 2005 21:43:06 -0000	1.4
@@ -97,7 +97,7 @@
 	    text_extents_t  e = text_extents (cr, text);
 	    
 	    move_to (cr, scale (axis.scale, major) - e.x_advance / 2, 
-		     abs(f.height) * 1.2);
+		     -abs(f.height) * 1.2);
 	    show_text (cr, text);
 	}
     }




More information about the cairo-commit mailing list