From 7bdd978ba4f08dba11efbf24c4b1b912fa458775 Mon Sep 17 00:00:00 2001 From: junghwan Choi Date: Fri, 8 Jun 2018 16:39:56 +0900 Subject: [PATCH] e_util_transform: fix mis-calculation of x/y position for the user-geometry windows Change-Id: I9651705b27573ff904a5a7e4eb06ff4ce6f8be70 Signed-off-by: junghwan Choi --- src/bin/e_util_transform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_util_transform.c b/src/bin/e_util_transform.c index 813dbf1..b85d798 100644 --- a/src/bin/e_util_transform.c +++ b/src/bin/e_util_transform.c @@ -1079,8 +1079,8 @@ _e_util_transform_value_convert_to_matrix(E_Util_Transform_Matrix *out, E_Util_T if (!E_UTIL_TRANSFORM_IS_ZERO(value->rotation[2])) e_util_transform_matrix_rotation_z(out, value->rotation[2]); - e_util_transform_matrix_translate(out, source_rect->x + value->move[0] + (dest_w / 2.0), - source_rect->y + value->move[1] + (dest_h / 2.0), 0.0); + e_util_transform_matrix_translate(out, (source_rect->x * value->scale[0]) + value->move[0] + (dest_w / 2.0), + (source_rect->y * value->scale[1]) + value->move[1] + (dest_h / 2.0), 0.0); } -- 2.7.4