diff --git a/ChangeLog b/ChangeLog index 75936be09..295c607da 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-11-18 Emmanuele Bassi + + * clutter/clutter-texture.c: + (clutter_texture_get_preferred_width): Fix the usage of the + fixed point division macro. + 2008-11-18 Emmanuele Bassi * tests/conform/test-conform-main.c (main): Do not run the diff --git a/clutter/clutter-texture.c b/clutter/clutter-texture.c index 0d7906503..17be068a1 100644 --- a/clutter/clutter-texture.c +++ b/clutter/clutter-texture.c @@ -332,7 +332,7 @@ clutter_texture_get_preferred_width (ClutterActor *self, /* Set the natural width so as to preserve the aspect ratio */ ClutterFixed ratio, height; - ratio = COGL_FIXED_MUL (COGL_FIXED_FROM_INT (priv->width), + ratio = COGL_FIXED_DIV (COGL_FIXED_FROM_INT (priv->width), COGL_FIXED_FROM_INT (priv->height)); height = CLUTTER_UNITS_TO_FIXED (for_height);