2008-11-18 Emmanuele Bassi <ebassi@linux.intel.com>

* clutter/clutter-texture.c:
	(clutter_texture_get_preferred_width): Fix the usage of the
	fixed point division macro.
This commit is contained in:
Emmanuele Bassi 2008-11-18 13:52:22 +00:00
parent ab9464b33d
commit 25d9773e15
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-11-18 Emmanuele Bassi <ebassi@linux.intel.com>
* clutter/clutter-texture.c:
(clutter_texture_get_preferred_width): Fix the usage of the
fixed point division macro.
2008-11-18 Emmanuele Bassi <ebassi@linux.intel.com>
* tests/conform/test-conform-main.c (main): Do not run the

View File

@ -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);