diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-04-28 07:02:04 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-04-28 07:02:04 +0000 |
commit | 543f6cbbe6b5b33affe65f4939811e74f150bb0c (patch) | |
tree | 295cb2a0551b7799cf78dfbf84bc80ee0fd4a058 /gdk/gdkpango.c | |
parent | 660f0898807dae6236128f1db2a8ae8cc90ae247 (diff) | |
download | gtk+-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.c | 4 |
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); } |