[MPlayer-cvslog] r37000 - trunk/gui/win32/widgetrender.c

ib subversion at mplayerhq.hu
Wed Mar 12 14:17:44 CET 2014


Author: ib
Date: Wed Mar 12 14:17:44 2014
New Revision: 37000

Log:
Fix dynamic label variables $v and $b in the Win32 GUI.

Modified:
   trunk/gui/win32/widgetrender.c

Modified: trunk/gui/win32/widgetrender.c
==============================================================================
--- trunk/gui/win32/widgetrender.c	Wed Mar 12 14:09:43 2014	(r36999)
+++ trunk/gui/win32/widgetrender.c	Wed Mar 12 14:17:44 2014	(r37000)
@@ -138,9 +138,9 @@ static char *generatetextfromlabel(widge
     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))));


More information about the MPlayer-cvslog mailing list