From: Jim Evins Date: Tue, 31 Dec 2002 08:04:13 +0000 (+0000) Subject: Use art_affine_scale() to flip objects instead of art_affine_flip(). X-Git-Tag: glabels-2_3_0~656 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=168faf48af68963a103de1def4f87d15ddb6f9b9;p=glabels 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 --- 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);