[evolution/rendering-cleanup: 53/97] gnome-canvas: Remove gnome_canvas_w2c_affine()



commit fd75476a93e86d97d003364d3cacd57d05bcf409
Author: Benjamin Otte <otte redhat com>
Date:   Sun Oct 17 14:40:47 2010 +0200

    gnome-canvas: Remove gnome_canvas_w2c_affine()
    
    It's not necessary anymore. Use gnome_canvas_w2c_matrix() instead.

 libgnomecanvas/gnome-canvas.c |   26 --------------------------
 libgnomecanvas/gnome-canvas.h |    2 --
 2 files changed, 0 insertions(+), 28 deletions(-)
---
diff --git a/libgnomecanvas/gnome-canvas.c b/libgnomecanvas/gnome-canvas.c
index be546be..01dcfb1 100644
--- a/libgnomecanvas/gnome-canvas.c
+++ b/libgnomecanvas/gnome-canvas.c
@@ -3563,32 +3563,6 @@ gnome_canvas_request_redraw (GnomeCanvas *canvas, gint x1, gint y1, gint x2, gin
 }
 
 /**
- * gnome_canvas_w2c_affine:
- * @canvas: A canvas.
- * @affine: An affine transformation matrix (return value).
- *
- * Gets the affine transform that converts from world coordinates to canvas
- * pixel coordinates.
- **/
-void
-gnome_canvas_w2c_affine (GnomeCanvas *canvas, gdouble affine[6])
-{
-	gdouble zooom;
-
-	g_return_if_fail (GNOME_IS_CANVAS (canvas));
-	g_return_if_fail (affine != NULL);
-
-	zooom = canvas->pixels_per_unit;
-
-	affine[0] = zooom;
-	affine[1] = 0;
-	affine[2] = 0;
-	affine[3] = zooom;
-	affine[4] = -canvas->scroll_x1 * zooom;
-	affine[5] = -canvas->scroll_y1 * zooom;
-}
-
-/**
  * gnome_canvas_w2c_matrix:
  * @canvas: A canvas.
  * @matrix: (out): matrix to initialize
diff --git a/libgnomecanvas/gnome-canvas.h b/libgnomecanvas/gnome-canvas.h
index 454bc3f..b940f67 100644
--- a/libgnomecanvas/gnome-canvas.h
+++ b/libgnomecanvas/gnome-canvas.h
@@ -43,7 +43,6 @@
 #include <libart_lgpl/art_rect.h>
 #include <libart_lgpl/art_svp.h>
 #include <libart_lgpl/art_uta.h>
-#include <libart_lgpl/art_affine.h>
 
 G_BEGIN_DECLS
 
@@ -505,7 +504,6 @@ void gnome_canvas_request_redraw (GnomeCanvas *canvas, gint x1, gint y1, gint x2
 /* Gets the affine transform that converts world coordinates into canvas pixel
  * coordinates.
  */
-void gnome_canvas_w2c_affine (GnomeCanvas *canvas, gdouble affine[6]);
 void gnome_canvas_w2c_matrix (GnomeCanvas *canvas, cairo_matrix_t *matrix);
 void gnome_canvas_c2w_matrix (GnomeCanvas *canvas, cairo_matrix_t *matrix);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]