[MPlayer-cvslog] r37012 - in trunk: DOCS/xml/cs/skin.xml DOCS/xml/de/skin.xml DOCS/xml/en/skin.xml DOCS/xml/es/skin.xml DOCS/xml/fr/skin.xml DOCS/xml/hu/skin.xml DOCS/xml/pl/skin.xml DOCS/xml/ru/skin.xml gui/ui/ren...

ib subversion at mplayerhq.hu
Thu Mar 13 16:51:42 CET 2014


Author: ib
Date: Thu Mar 13 16:51:42 2014
New Revision: 37012

Log:
Add new dynamic label variable $U.

This is the volume without decimal places (which makes more sense to me
than $V and should have been the output of $V in the first place).

Modified:
   trunk/gui/ui/render.c
   trunk/gui/win32/widgetrender.c

Changes in other areas also in this revision:
Modified:
   trunk/DOCS/xml/cs/skin.xml
   trunk/DOCS/xml/de/skin.xml
   trunk/DOCS/xml/en/skin.xml
   trunk/DOCS/xml/es/skin.xml
   trunk/DOCS/xml/fr/skin.xml
   trunk/DOCS/xml/hu/skin.xml
   trunk/DOCS/xml/pl/skin.xml
   trunk/DOCS/xml/ru/skin.xml

Modified: trunk/gui/ui/render.c
==============================================================================
--- trunk/gui/ui/render.c	Thu Mar 13 16:42:10 2014	(r37011)
+++ trunk/gui/ui/render.c	Thu Mar 13 16:51:42 2014	(r37012)
@@ -124,6 +124,11 @@ calclengthmmmmss:
                 av_strlcat(trbuf, tmp, sizeof(trbuf));
                 break;
 
+            case 'U':
+                snprintf(tmp, sizeof(tmp), "%3.0f", guiInfo.Volume);
+                av_strlcat(trbuf, tmp, sizeof(trbuf));
+                break;
+
             case 'b':
                 snprintf(tmp, sizeof(tmp), "%3.2f%%", guiInfo.Balance);
                 av_strlcat(trbuf, tmp, sizeof(trbuf));

Modified: trunk/gui/win32/widgetrender.c
==============================================================================
--- trunk/gui/win32/widgetrender.c	Thu Mar 13 16:42:10 2014	(r37011)
+++ trunk/gui/win32/widgetrender.c	Thu Mar 13 16:51:42 2014	(r37012)
@@ -140,6 +140,7 @@ static char *generatetextfromlabel(widge
                  (guiInfo.ElapsedTime / 60) % 60, guiInfo.ElapsedTime % 60);
     stringreplace(text, "$v", "%3.2f%%", guiInfo.Volume);
     stringreplace(text, "$V", "%3.1f", guiInfo.Volume);
+    stringreplace(text, "$U", "%3.0f", guiInfo.Volume);
     stringreplace(text, "$b", "%3.2f%%", guiInfo.Balance);
     stringreplace(text, "$B", "%3.1f", guiInfo.Balance);
     stringreplace(text, "$D", "%3.0f", guiInfo.Balance);


More information about the MPlayer-cvslog mailing list