mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed bug in displayvolumeview
This commit is contained in:
parent
85d3f0efbd
commit
3bbb613609
1
HISTORY
1
HISTORY
@ -140,3 +140,4 @@ Version 0.1.2
|
||||
|
||||
- display only active remote timers in main menu
|
||||
- fixed two possible null pointer accesses in displaymenurootview
|
||||
- fixed bug in displayvolumeview
|
||||
|
@ -23,7 +23,7 @@
|
||||
<drawtext align="center" valign="center" color="{clrWhite}" font="{semibold}" fontsize="80%" text="{volume} / {maxvolume}" />
|
||||
</area>
|
||||
<area x="0" y="0" width="100%" height="100%" layer="5">
|
||||
<drawimage imagetype="skinpart" path="tachohands/perc_{volpercent}" x="{areawidth}*0.059" y="{areawidth}*0.059" width="{areawidth}*0.882" height="{areawidth}*0.882"/>
|
||||
<drawimage imagetype="skinpart" path="tachohands/perc_{volumepercent}" x="{areawidth}*0.059" y="{areawidth}*0.059" width="{areawidth}*0.882" height="{areawidth}*0.882"/>
|
||||
</area>
|
||||
<area x="0" y="80%" width="20%" height="20%" layer="5">
|
||||
<drawimage condition="gt({volpercent}, 74)" imagetype="icon" path="ico_volume_full" align="center" valign="center" width="90%" height="90%"/>
|
||||
|
@ -40,7 +40,7 @@ void cDisplayVolumeView::DrawVolume(int current, int total, bool mute) {
|
||||
|
||||
intTokens.insert(pair<string,int>("volume", current));
|
||||
intTokens.insert(pair<string,int>("maxvolume", total));
|
||||
intTokens.insert(pair<string,int>("volpercent", (double)current *100 / (double)total));
|
||||
intTokens.insert(pair<string,int>("volumepercent", (double)current *100 / (double)total));
|
||||
intTokens.insert(pair<string,int>("mute", mute));
|
||||
|
||||
ClearViewElement(veVolume);
|
||||
|
Loading…
Reference in New Issue
Block a user