diff --git a/ChangeLog b/ChangeLog index 58e7d33db3..9456851379 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-10-27 Sven Neumann + + * app/text/gimptextlayout-render.c (gimp_text_layout_render_trafo): + minor cleanup. + 2008-10-27 Sven Neumann * app/text/gimptext-bitmap.c: cleanup, removed unused includes. diff --git a/app/text/gimptextlayout-render.c b/app/text/gimptextlayout-render.c index addf95475f..5e608aa02c 100644 --- a/app/text/gimptextlayout-render.c +++ b/app/text/gimptextlayout-render.c @@ -234,11 +234,12 @@ static void gimp_text_layout_render_trafo (GimpTextLayout *layout, cairo_matrix_t *trafo) { - GimpText *text = layout->text; + GimpText *text = layout->text; + const gdouble norm = 1.0 / layout->yres * layout->xres; - trafo->xx = text->transformation.coeff[0][0] * 1.0 / layout->yres * layout->xres; + trafo->xx = text->transformation.coeff[0][0] * norm; trafo->xy = text->transformation.coeff[0][1] * 1.0; - trafo->yx = text->transformation.coeff[1][0] * 1.0 / layout->yres * layout->xres; + trafo->yx = text->transformation.coeff[1][0] * norm; trafo->yy = text->transformation.coeff[1][1] * 1.0; trafo->x0 = 0; trafo->y0 = 0;