[gimp] app: don't subtract the offset twice in zoom_xy() and transform_xy()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't subtract the offset twice in zoom_xy() and transform_xy()
- Date: Thu, 25 Apr 2013 07:14:39 +0000 (UTC)
commit 89081075f34a646c0a65ae3615bc4fc420c82dd7
Author: Michael Natterer <mitch gimp org>
Date: Thu Apr 25 09:13:30 2013 +0200
app: don't subtract the offset twice in zoom_xy() and transform_xy()
app/display/gimpdisplayshell-transform.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-transform.c b/app/display/gimpdisplayshell-transform.c
index f5364fc..28d063d 100644
--- a/app/display/gimpdisplayshell-transform.c
+++ b/app/display/gimpdisplayshell-transform.c
@@ -113,8 +113,8 @@ gimp_display_shell_zoom_xy (const GimpDisplayShell *shell,
g_return_if_fail (nx != NULL);
g_return_if_fail (ny != NULL);
- tx = x * shell->scale_x - shell->offset_x;
- ty = y * shell->scale_y - shell->offset_y;
+ tx = x * shell->scale_x;
+ ty = y * shell->scale_y;
tx -= shell->offset_x;
ty -= shell->offset_y;
@@ -626,8 +626,8 @@ gimp_display_shell_transform_xy (const GimpDisplayShell *shell,
g_return_if_fail (nx != NULL);
g_return_if_fail (ny != NULL);
- tx = x * shell->scale_x - shell->offset_x;
- ty = y * shell->scale_y - shell->offset_y;
+ tx = x * shell->scale_x;
+ ty = y * shell->scale_y;
tx -= shell->offset_x;
ty -= shell->offset_y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]