changeset 36904:7c5b6a58fac6

Fix dynamic label variables $v and $b in the Win32 GUI.
author ib
date Wed, 12 Mar 2014 13:17:44 +0000
parents 0431b751dba9
children bff7c54aa8f1
files gui/win32/widgetrender.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/widgetrender.c	Wed Mar 12 13:09:43 2014 +0000
+++ b/gui/win32/widgetrender.c	Wed Mar 12 13:17:44 2014 +0000
@@ -138,9 +138,9 @@
     stringreplace(text, "$7", "%.4i:%.2i", guiInfo.RunningTime / 60, guiInfo.RunningTime % 60);
     stringreplace(text, "$8", "%i:%.2i:%.2i", guiInfo.ElapsedTime / 3600,
                  (guiInfo.ElapsedTime / 60) % 60, guiInfo.ElapsedTime % 60);
-    stringreplace(text, "$v", "%3.2f", guiInfo.Volume);
+    stringreplace(text, "$v", "%3.2f%%", guiInfo.Volume);
     stringreplace(text, "$V", "%3.1f", guiInfo.Volume);
-    stringreplace(text, "$b", "%3.2f", guiInfo.Balance);
+    stringreplace(text, "$b", "%3.2f%%", guiInfo.Balance);
     stringreplace(text, "$B", "%3.1f", guiInfo.Balance);
     stringreplace(text, "$t", "%.2i", guiInfo.Track);
     stringreplace(text, "$o", "%s", acp(TranslateFilename(0, tmp, sizeof(tmp))));