1
0
Fork 0

Remove stray fixed point macro usage

The CoglPango renderer is using a CLUTTER_FIXED macro, but the
whole code has been Clutter-free for a while, now.
This commit is contained in:
Emmanuele Bassi 2009-02-23 15:19:11 +00:00
parent 62ac234ca9
commit 64db7896db

View file

@ -81,8 +81,8 @@ cogl_pango_renderer_glyphs_end (CoglPangoRenderer *priv)
static void static void
cogl_pango_renderer_draw_glyph (CoglPangoRenderer *priv, cogl_pango_renderer_draw_glyph (CoglPangoRenderer *priv,
CoglPangoGlyphCacheValue *cache_value, CoglPangoGlyphCacheValue *cache_value,
float x1, float x1,
float y1) float y1)
{ {
float x2, y2; float x2, y2;
float *p; float *p;
@ -93,8 +93,8 @@ cogl_pango_renderer_draw_glyph (CoglPangoRenderer *priv,
priv->glyph_texture = cache_value->texture; priv->glyph_texture = cache_value->texture;
x2 = x1 + CLUTTER_INT_TO_FIXED (cache_value->draw_width); x2 = x1 + (float) cache_value->draw_width;
y2 = y1 + CLUTTER_INT_TO_FIXED (cache_value->draw_height); y2 = y1 + (float) cache_value->draw_height;
g_array_set_size (priv->glyph_rectangles, priv->glyph_rectangles->len + 8); g_array_set_size (priv->glyph_rectangles, priv->glyph_rectangles->len + 8);
p = &g_array_index (priv->glyph_rectangles, float, p = &g_array_index (priv->glyph_rectangles, float,