minor cleanup.

2008-10-27  Sven Neumann  <sven@gimp.org>

	* app/text/gimptextlayout-render.c 
(gimp_text_layout_render_trafo):
	minor cleanup.


svn path=/trunk/; revision=27434
This commit is contained in:
Sven Neumann 2008-10-27 08:15:06 +00:00 committed by Sven Neumann
parent edec220dac
commit 819c5a6670
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2008-10-27 Sven Neumann <sven@gimp.org>
* app/text/gimptextlayout-render.c (gimp_text_layout_render_trafo):
minor cleanup.
2008-10-27 Sven Neumann <sven@gimp.org>
* app/text/gimptext-bitmap.c: cleanup, removed unused includes.

View File

@ -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;