[gimp] app: remove gimp_display_shell_transform_coords()



commit 7db14ffca9f38adbe0d57b225d679a4befdd1805
Author: Michael Natterer <mitch gimp org>
Date:   Sun Sep 26 23:09:23 2010 +0200

    app: remove gimp_display_shell_transform_coords()

 app/display/gimpdisplayshell-transform.c |   35 ------------------------------
 app/display/gimpdisplayshell-transform.h |    4 ---
 2 files changed, 0 insertions(+), 39 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-transform.c b/app/display/gimpdisplayshell-transform.c
index ff75aae..408de97 100644
--- a/app/display/gimpdisplayshell-transform.c
+++ b/app/display/gimpdisplayshell-transform.c
@@ -224,41 +224,6 @@ gimp_display_shell_untransform_xy_f (const GimpDisplayShell *shell,
 }
 
 /**
- * gimp_display_shell_transform_coords:
- * @shell:        a #GimpDisplayShell
- * @image_coords: array of image coordinates
- * @disp_coords:  returns the corresponding display coordinates
- * @n_coords:     number of coordinates
- *
- * Transforms from image coordinates to display coordinates, so that
- * objects can be rendered at the correct points on the display.
- **/
-void
-gimp_display_shell_transform_coords (const GimpDisplayShell *shell,
-                                     const GimpCoords       *image_coords,
-                                     GdkPoint               *disp_coords,
-                                     gint                    n_coords)
-{
-  gint i;
-
-  g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
-
-  for (i = 0; i < n_coords ; i++)
-    {
-      gdouble x = image_coords[i].x;
-      gdouble y = image_coords[i].y;
-
-      x = x * shell->x_src_dec / shell->x_dest_inc;
-      y = y * shell->y_src_dec / shell->y_dest_inc;
-
-      disp_coords[i].x = CLAMP (PROJ_ROUND64 (x) - shell->offset_x,
-                                G_MININT, G_MAXINT);
-      disp_coords[i].y = CLAMP (PROJ_ROUND64 (y) - shell->offset_y,
-                                G_MININT, G_MAXINT);
-    }
-}
-
-/**
  * gimp_display_shell_transform_segments:
  * @shell:       a #GimpDisplayShell
  * @src_segs:    array of segments in image coordinates
diff --git a/app/display/gimpdisplayshell-transform.h b/app/display/gimpdisplayshell-transform.h
index 0672692..e082cf4 100644
--- a/app/display/gimpdisplayshell-transform.h
+++ b/app/display/gimpdisplayshell-transform.h
@@ -49,10 +49,6 @@ void  gimp_display_shell_untransform_xy_f       (const GimpDisplayShell *shell,
                                                  gdouble                *nx,
                                                  gdouble                *ny);
 
-void  gimp_display_shell_transform_coords       (const GimpDisplayShell *shell,
-                                                 const GimpCoords       *image_coords,
-                                                 GdkPoint               *disp_coords,
-                                                 gint                    n_coords);
 void  gimp_display_shell_transform_segments     (const GimpDisplayShell *shell,
                                                  const BoundSeg         *src_segs,
                                                  GdkSegment             *dest_segs,



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