[Automatic fixed-to-float.sh change] Applies all scripted changes
This is the result of running a number of sed and perl scripts over the code to do 90% of the work in converting from 16.16 fixed to single precision floating point. Note: A pristine cogl-fixed.c has been maintained as a standalone utility API so that applications may still take advantage of fixed point if they desire for certain optimisations where lower precision may be acceptable. Note: no API changes were made in Clutter, only in Cogl. Overview of changes: - Within clutter/* all usage of the COGL_FIXED_ macros have been changed to use the CLUTTER_FIXED_ macros. - Within cogl/* all usage of the COGL_FIXED_ macros have been completly stripped and expanded into code that works with single precision floats instead. - Uses of cogl_fixed_* have been replaced with single precision math.h alternatives. - Uses of COGL_ANGLE_* and cogl_angle_* have been replaced so we use a float for angles and math.h replacements.
This commit is contained in:
@ -416,7 +416,7 @@ clutter_backend_set_resolution (ClutterBackend *backend,
|
||||
|
||||
priv = backend->priv;
|
||||
|
||||
fixed_dpi = COGL_FIXED_FROM_FLOAT (dpi);
|
||||
fixed_dpi = CLUTTER_FLOAT_TO_FIXED (dpi);
|
||||
if (priv->resolution != fixed_dpi)
|
||||
priv->resolution = fixed_dpi;
|
||||
|
||||
@ -443,7 +443,7 @@ clutter_backend_get_resolution (ClutterBackend *backend)
|
||||
{
|
||||
g_return_val_if_fail (CLUTTER_IS_BACKEND (backend), -1.0);
|
||||
|
||||
return COGL_FIXED_TO_FLOAT (backend->priv->resolution);
|
||||
return CLUTTER_FIXED_TO_FLOAT (backend->priv->resolution);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user