Still more double to float.

This commit is contained in:
Kim Woelders 2013-07-08 00:20:44 +02:00
parent 3d03033e7f
commit 30cb2101aa
2 changed files with 3 additions and 3 deletions

View File

@ -1912,7 +1912,7 @@ _DlgPixToVal(const DItem * di, int dx, int sr)
int vr, val;
vr = di->item.slider.upper - di->item.slider.lower;
dx = (int)(((float)dx / (sr * di->item.slider.unit)) * abs(vr) + .5);
dx = (int)(((float)dx / (sr * di->item.slider.unit)) * abs(vr) + .5f);
dx *= di->item.slider.unit;
if (vr < 0)
dx = -dx;

View File

@ -2077,10 +2077,10 @@ ECompMgrShadowsInit(int mode, int cleanup)
Conf_compmgr.shadows.blur.opacity =
OpacityFix(Conf_compmgr.shadows.blur.opacity, 100);
Mode_compmgr.opac_blur = .01 * Conf_compmgr.shadows.blur.opacity;
Mode_compmgr.opac_blur = .01f * Conf_compmgr.shadows.blur.opacity;
Conf_compmgr.shadows.sharp.opacity =
OpacityFix(Conf_compmgr.shadows.sharp.opacity, 100);
Mode_compmgr.opac_sharp = .01 * Conf_compmgr.shadows.sharp.opacity;
Mode_compmgr.opac_sharp = .01f * Conf_compmgr.shadows.sharp.opacity;
Efree(gaussianMap);
gaussianMap = NULL;