forked from AuroraMiddleware/gtk
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:
parent
660f089880
commit
543f6cbbe6
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user