mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
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:
parent
ab9464b33d
commit
25d9773e15
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user