mirror of https://github.com/GNOME/gimp.git
applied patch from Joao S. O. Bueno that fixes bug #160339.
2004-12-05 Sven Neumann <sven@gimp.org> * app/core/gimp-transform-utils.c (gimp_transform_matrix_flip_free): applied patch from Joao S. O. Bueno that fixes bug #160339.
This commit is contained in:
parent
1fe2636a8b
commit
6f73b3e58c
|
@ -1,3 +1,8 @@
|
|||
2004-12-05 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/core/gimp-transform-utils.c (gimp_transform_matrix_flip_free):
|
||||
applied patch from Joao S. O. Bueno that fixes bug #160339.
|
||||
|
||||
2004-12-05 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/help/domain.c
|
||||
|
|
|
@ -67,20 +67,17 @@ gimp_transform_matrix_flip_free (gint x,
|
|||
GimpMatrix3 *result)
|
||||
{
|
||||
gdouble angle;
|
||||
gdouble dx, dy;
|
||||
|
||||
g_return_if_fail (result != NULL);
|
||||
|
||||
angle = atan2 (y2 - y1, x2 - x1);
|
||||
dx = x - x1;
|
||||
dy = (x1 + ((y2 - y1) / (x2 - x1) ) * x) - y1;
|
||||
|
||||
gimp_matrix3_identity (result);
|
||||
gimp_matrix3_translate (result, dx, dy);
|
||||
gimp_matrix3_translate (result, -x1, -y1);
|
||||
gimp_matrix3_rotate (result, -angle);
|
||||
gimp_matrix3_scale (result, 1.0, -1.0);
|
||||
gimp_matrix3_rotate (result, angle);
|
||||
gimp_matrix3_translate (result, -dx, -dy);
|
||||
gimp_matrix3_translate (result, x1, y1);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue