Mercurial > mplayer.hg
diff gui/ui/render.c @ 36914:1db578946152
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).
author | ib |
---|---|
date | Thu, 13 Mar 2014 15:41:22 +0000 |
parents | 11932adad7a2 |
children | d41fbe8a8797 |
line wrap: on
line diff
--- a/gui/ui/render.c Thu Mar 13 14:57:47 2014 +0000 +++ b/gui/ui/render.c Thu Mar 13 15:41:22 2014 +0000 @@ -134,6 +134,11 @@ 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));