# HG changeset patch # User ib # Date 1394630674 0 # Node ID bff7c54aa8f17e8ebce9835be58e7d00688ab857 # Parent 7c5b6a58fac6b86e58ccb1aa79dbac689098c1c9 Increase arithmetic precision. diff -r 7c5b6a58fac6 -r bff7c54aa8f1 gui/win32/interface.c --- 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; }