mirror of https://github.com/GNOME/gimp.git
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:
parent
edec220dac
commit
819c5a6670
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue