summaryrefslogtreecommitdiff
path: root/gdk/gdkpango.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-04-28 07:02:04 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-04-28 07:02:04 +0000
commit543f6cbbe6b5b33affe65f4939811e74f150bb0c (patch)
tree295cb2a0551b7799cf78dfbf84bc80ee0fd4a058 /gdk/gdkpango.c
parent660f0898807dae6236128f1db2a8ae8cc90ae247 (diff)
downloadgtk+-543f6cbbe6b5b33affe65f4939811e74f150bb0c.tar.gz
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)
Diffstat (limited to 'gdk/gdkpango.c')
-rw-r--r--gdk/gdkpango.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/gdkpango.c b/gdk/gdkpango.c
index 22802535c5..9375a80545 100644
--- a/gdk/gdkpango.c
+++ b/gdk/gdkpango.c
@@ -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);
}