From 168faf48af68963a103de1def4f87d15ddb6f9b9 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Tue, 31 Dec 2002 08:04:13 +0000 Subject: [PATCH] Use art_affine_scale() to flip objects instead of art_affine_flip(). git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@231 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- glabels2/src/label-object.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/glabels2/src/label-object.c b/glabels2/src/label-object.c index 44920b24..dd825e71 100644 --- a/glabels2/src/label-object.c +++ b/glabels2/src/label-object.c @@ -521,11 +521,14 @@ gl_label_object_get_extent (glLabelObject *object, void gl_label_object_flip_horiz (glLabelObject *object) { + gdouble flip_affine[6]; + gl_debug (DEBUG_LABEL, "START"); g_return_if_fail (object && GL_IS_LABEL_OBJECT (object)); - art_affine_flip (object->private->affine, object->private->affine, TRUE, FALSE); + art_affine_scale (flip_affine, -1.0, 1.0); + art_affine_multiply (object->private->affine, object->private->affine, flip_affine); g_signal_emit (G_OBJECT(object), signals[FLIP_ROTATE], 0); @@ -538,11 +541,14 @@ gl_label_object_flip_horiz (glLabelObject *object) void gl_label_object_flip_vert (glLabelObject *object) { + gdouble flip_affine[6]; + gl_debug (DEBUG_LABEL, "START"); g_return_if_fail (object && GL_IS_LABEL_OBJECT (object)); - art_affine_flip (object->private->affine, object->private->affine, FALSE, TRUE); + art_affine_scale (flip_affine, 1.0, -1.0); + art_affine_multiply (object->private->affine, object->private->affine, flip_affine); g_signal_emit (G_OBJECT(object), signals[FLIP_ROTATE], 0); -- 2.39.5