Remove usage of Units and macros

The ClutterUnit and relative macros should not be used when dealing
with pixels -- which is to say, all the time when inside Clutter.
This commit is contained in:
Emmanuele Bassi
2009-06-02 18:44:30 +01:00
parent 26f07abc65
commit 046e571bae
11 changed files with 143 additions and 184 deletions

View File

@ -103,11 +103,11 @@ clutter_backend_dispose (GObject *gobject)
G_OBJECT_CLASS (clutter_backend_parent_class)->dispose (gobject);
}
static ClutterUnit
static gfloat
get_units_per_em (ClutterBackend *backend,
PangoFontDescription *font_desc)
{
ClutterUnit units_per_em = -1.0;
gfloat units_per_em = -1.0;
gboolean free_font_desc = FALSE;
gdouble dpi;