Mercurial > mplayer.hg
changeset 36905:bff7c54aa8f1
Increase arithmetic precision.
author | ib |
---|---|
date | Wed, 12 Mar 2014 13:24:34 +0000 |
parents | 7c5b6a58fac6 |
children | 7d8f27be5796 |
files | gui/win32/interface.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/win32/interface.c Wed Mar 12 13:17:44 2014 +0000 +++ b/gui/win32/interface.c Wed Mar 12 13:24:34 2014 +0000 @@ -296,7 +296,7 @@ break; case evSetMoviePosition: { - rel_seek_secs = guiInfo.Position / 100.0f; + rel_seek_secs = guiInfo.Position / 100.0; abs_seek_pos = SEEK_ABSOLUTE | SEEK_FACTOR; break; } @@ -323,8 +323,8 @@ if (guiInfo.Balance == 50.0f) mixer_setvolume(mixer, guiInfo.Volume, guiInfo.Volume); - l = guiInfo.Volume * (100.0f - guiInfo.Balance) / 50.0f; - r = guiInfo.Volume * guiInfo.Balance / 50.0f; + l = guiInfo.Volume * (100.0 - guiInfo.Balance) / 50.0; + r = guiInfo.Volume * guiInfo.Balance / 50.0; if (l > guiInfo.Volume) l=guiInfo.Volume; if (r > guiInfo.Volume) r=guiInfo.Volume; @@ -753,7 +753,7 @@ mixer_getvolume(mixer, &l, &r); guiInfo.Volume = (r > l ? r : l); /* max(r,l) */ if (r != l) - guiInfo.Balance = ((r-l) + 100.0f) * 0.5f; + guiInfo.Balance = ((r-l) + 100.0) * 0.5; else guiInfo.Balance = 50.0f; }