[MPlayer-cvslog] r37010 - 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:41:22 CET 2014


Author: ib
Date: Thu Mar 13 16:41:22 2014
New Revision: 37010

Log:
Add new dynamic label variable $D.

This is the balance without decimal places (which makes more sense to me
than $B and should have been the output of $B 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 15:57:47 2014	(r37009)
+++ trunk/gui/ui/render.c	Thu Mar 13 16:41:22 2014	(r37010)
@@ -134,6 +134,11 @@ calclengthmmmmss:
                 av_strlcat(trbuf, tmp, sizeof(trbuf));
                 break;
 
+            case 'D':
+                snprintf(tmp, sizeof(tmp), "%3.0f", guiInfo.Balance);
+                av_strlcat(trbuf, tmp, sizeof(trbuf));
+                break;
+
             case 'x':
                 snprintf(tmp, sizeof(tmp), "%d", guiInfo.VideoWidth);
                 av_strlcat(trbuf, tmp, sizeof(trbuf));

Modified: trunk/gui/win32/widgetrender.c
==============================================================================
--- trunk/gui/win32/widgetrender.c	Thu Mar 13 15:57:47 2014	(r37009)
+++ trunk/gui/win32/widgetrender.c	Thu Mar 13 16:41:22 2014	(r37010)
@@ -142,6 +142,7 @@ static char *generatetextfromlabel(widge
     stringreplace(text, "$V", "%3.1f", guiInfo.Volume);
     stringreplace(text, "$b", "%3.2f%%", guiInfo.Balance);
     stringreplace(text, "$B", "%3.1f", guiInfo.Balance);
+    stringreplace(text, "$D", "%3.0f", guiInfo.Balance);
     stringreplace(text, "$t", "%.2i", guiInfo.Track);
     stringreplace(text, "$o", "%s", acp(TranslateFilename(0, tmp, sizeof(tmp))));
     stringreplace(text, "$x", "%i", guiInfo.VideoWidth);


More information about the MPlayer-cvslog mailing list