[gimp] app: remove gimp_display_shell_transform_points()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove gimp_display_shell_transform_points()
- Date: Sun, 26 Sep 2010 21:06:49 +0000 (UTC)
commit 3b7999a2183e5a03a0d64e88f589b6d9a48e2b81
Author: Michael Natterer <mitch gimp org>
Date: Sun Sep 26 23:06:07 2010 +0200
app: remove gimp_display_shell_transform_points()
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 3c86bf4..ff75aae 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_points:
- * @shell: a #GimpDisplayShell
- * @points: array of GimpVectors2 coordinate pairs
- * @coords: returns the corresponding display coordinates
- * @n_points: number of points
- *
- * 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_points (const GimpDisplayShell *shell,
- const GimpVector2 *points,
- GdkPoint *coords,
- gint n_points)
-{
- gint i;
-
- g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
-
- for (i = 0; i < n_points ; i++)
- {
- gdouble x = points[i].x;
- gdouble y = points[i].y;
-
- x = x * shell->x_src_dec / shell->x_dest_inc;
- y = y * shell->y_src_dec / shell->y_dest_inc;
-
- coords[i].x = CLAMP (PROJ_ROUND64 (x) - shell->offset_x,
- G_MININT, G_MAXINT);
- coords[i].y = CLAMP (PROJ_ROUND64 (y) - shell->offset_y,
- G_MININT, G_MAXINT);
- }
-}
-
-/**
* gimp_display_shell_transform_coords:
* @shell: a #GimpDisplayShell
* @image_coords: array of image coordinates
diff --git a/app/display/gimpdisplayshell-transform.h b/app/display/gimpdisplayshell-transform.h
index 9e44355..0672692 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_points (const GimpDisplayShell *shell,
- const GimpVector2 *points,
- GdkPoint *coords,
- gint n_points);
void gimp_display_shell_transform_coords (const GimpDisplayShell *shell,
const GimpCoords *image_coords,
GdkPoint *disp_coords,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]