Cast to double before dividing by PANGO_SCALE. (#334582)

2006-04-27  Behdad Esfahbod  <behdad@gnome.org>

        * gdk/gdkpango.c (gdk_pango_renderer_draw_glyphs): Cast to double
        before dividing by PANGO_SCALE. (#334582)
This commit is contained in:
Behdad Esfahbod 2006-04-28 07:02:04 +00:00 committed by Behdad Esfahbod
parent 660f089880
commit 543f6cbbe6
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-04-27 Behdad Esfahbod <behdad@gnome.org>
* gdk/gdkpango.c (gdk_pango_renderer_draw_glyphs): Cast to double
before dividing by PANGO_SCALE. (#334582)
2006-04-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (popup_position_func): Improve positioning

View File

@ -1,3 +1,8 @@
2006-04-27 Behdad Esfahbod <behdad@gnome.org>
* gdk/gdkpango.c (gdk_pango_renderer_draw_glyphs): Cast to double
before dividing by PANGO_SCALE. (#334582)
2006-04-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (popup_position_func): Improve positioning

View File

@ -235,12 +235,12 @@ gdk_pango_renderer_draw_glyphs (PangoRenderer *renderer,
{
cairo_save (cr);
emboss_context (cr);
cairo_move_to (cr, x / PANGO_SCALE, y / PANGO_SCALE);
cairo_move_to (cr, (double)x / PANGO_SCALE, (double)y / PANGO_SCALE);
pango_cairo_show_glyph_string (cr, font, glyphs);
cairo_restore (cr);
}
cairo_move_to (cr, x / PANGO_SCALE, y / PANGO_SCALE);
cairo_move_to (cr, (double)x / PANGO_SCALE, (double)y / PANGO_SCALE);
pango_cairo_show_glyph_string (cr, font, glyphs);
}