Mercurial > mplayer.hg
diff gui/ui/render.c @ 36916:d41fbe8a8797
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).
author | ib |
---|---|
date | Thu, 13 Mar 2014 15:51:42 +0000 |
parents | 1db578946152 |
children | e0a0b0846c4e |
line wrap: on
line diff
--- a/gui/ui/render.c Thu Mar 13 15:42:10 2014 +0000 +++ b/gui/ui/render.c Thu Mar 13 15:51:42 2014 +0000 @@ -124,6 +124,11 @@ 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));