[cairo-commit] cairo/src cairo_path_bounds.c,1.8,1.9

Carl Worth commit at pdx.freedesktop.org
Mon Dec 8 17:39:34 PST 2003


Committed by: cworth

Update of /cvs/cairo/cairo/src
In directory pdx:/tmp/cvs-serv12214/src

Modified Files:
	cairo_path_bounds.c 
Log Message:

	* src/cairo_path_bounds.c (_cairo_path_bounder_move_to):
	(_cairo_path_bounder_line_to):
	(_cairo_path_bounder_curve_to):
	(_cairo_path_bounder_close_path): Track change in
	cairo_path_callbacks interface.


Index: cairo_path_bounds.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo_path_bounds.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** cairo_path_bounds.c	23 Oct 2003 14:47:29 -0000	1.8
--- cairo_path_bounds.c	9 Dec 2003 01:39:32 -0000	1.9
***************
*** 47,59 ****
  
  static cairo_status_t
! _cairo_path_bounder_add_edge (void *closure, cairo_point_t *p1, cairo_point_t *p2);
  
  static cairo_status_t
! _cairo_path_bounder_add_spline (void *closure,
! 				cairo_point_t *a, cairo_point_t *b,
! 				cairo_point_t *c, cairo_point_t *d);
  
  static cairo_status_t
! _cairo_path_bounder_done_sub_path (void *closure, cairo_sub_path_done_t done);
  
  static cairo_status_t
--- 47,63 ----
  
  static cairo_status_t
! _cairo_path_bounder_move_to (void *closure, cairo_point_t *point);
  
  static cairo_status_t
! _cairo_path_bounder_line_to (void *closure, cairo_point_t *point);
  
  static cairo_status_t
! _cairo_path_bounder_curve_to (void *closure,
! 			      cairo_point_t *b,
! 			      cairo_point_t *c,
! 			      cairo_point_t *d);
! 
! static cairo_status_t
! _cairo_path_bounder_close_path (void *closure);
  
  static cairo_status_t
***************
*** 100,109 ****
  
  static cairo_status_t
! _cairo_path_bounder_add_edge (void *closure, cairo_point_t *p1, cairo_point_t *p2)
  {
      cairo_path_bounder_t *bounder = closure;
  
!     _cairo_path_bounder_add_point (bounder, p1);
!     _cairo_path_bounder_add_point (bounder, p2);
  
      return CAIRO_STATUS_SUCCESS;
--- 104,112 ----
  
  static cairo_status_t
! _cairo_path_bounder_move_to (void *closure, cairo_point_t *point)
  {
      cairo_path_bounder_t *bounder = closure;
  
!     _cairo_path_bounder_add_point (bounder, point);
  
      return CAIRO_STATUS_SUCCESS;
***************
*** 111,121 ****
  
  static cairo_status_t
! _cairo_path_bounder_add_spline (void *closure,
! 				cairo_point_t *a, cairo_point_t *b,
! 				cairo_point_t *c, cairo_point_t *d)
  {
      cairo_path_bounder_t *bounder = closure;
  
-     _cairo_path_bounder_add_point (bounder, a);
      _cairo_path_bounder_add_point (bounder, b);
      _cairo_path_bounder_add_point (bounder, c);
--- 114,134 ----
  
  static cairo_status_t
! _cairo_path_bounder_line_to (void *closure, cairo_point_t *point)
! {
!     cairo_path_bounder_t *bounder = closure;
! 
!     _cairo_path_bounder_add_point (bounder, point);
! 
!     return CAIRO_STATUS_SUCCESS;
! }
! 
! static cairo_status_t
! _cairo_path_bounder_curve_to (void *closure,
! 			      cairo_point_t *b,
! 			      cairo_point_t *c,
! 			      cairo_point_t *d)
  {
      cairo_path_bounder_t *bounder = closure;
  
      _cairo_path_bounder_add_point (bounder, b);
      _cairo_path_bounder_add_point (bounder, c);
***************
*** 126,130 ****
  
  static cairo_status_t
! _cairo_path_bounder_done_sub_path (void *closure, cairo_sub_path_done_t done)
  {
      return CAIRO_STATUS_SUCCESS;
--- 139,143 ----
  
  static cairo_status_t
! _cairo_path_bounder_close_path (void *closure)
  {
      return CAIRO_STATUS_SUCCESS;
***************
*** 143,149 ****
      cairo_status_t status;
      static cairo_path_callbacks_t const cb = {
! 	_cairo_path_bounder_add_edge,
! 	_cairo_path_bounder_add_spline,
! 	_cairo_path_bounder_done_sub_path,
  	_cairo_path_bounder_done_path
      };
--- 156,163 ----
      cairo_status_t status;
      static cairo_path_callbacks_t const cb = {
! 	_cairo_path_bounder_move_to,
! 	_cairo_path_bounder_line_to,
! 	_cairo_path_bounder_curve_to,
! 	_cairo_path_bounder_close_path,
  	_cairo_path_bounder_done_path
      };





More information about the cairo-commit mailing list