diff options
author | louis <louis.braun@gmx.de> | 2015-03-20 14:16:09 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2015-03-20 14:16:09 +0100 |
commit | 9f8cd6dab57b863922903e713a56cbd6e86e8958 (patch) | |
tree | a9398a074dd0690e61cf9b0ecdc97d6c8f9fdd5b | |
parent | a5e051e327de2098605cea9ecd517d549bbad9e0 (diff) | |
download | vdr-plugin-skindesigner-9f8cd6dab57b863922903e713a56cbd6e86e8958.tar.gz vdr-plugin-skindesigner-9f8cd6dab57b863922903e713a56cbd6e86e8958.tar.bz2 |
Fixed hide root menu from a subview template
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | libtemplate/templatefunction.c | 7 | ||||
-rw-r--r-- | skins/blackhole/xmlfiles/displaymenumain.xml | 2 | ||||
-rw-r--r-- | views/displaypluginview.c | 10 |
4 files changed, 15 insertions, 7 deletions
@@ -221,3 +221,6 @@ Version 0.3.0 - fixed colors in tvguideng timeline in nopacity darkred Version 0.3.1 + +- Fixed hide root menu from a subview template + diff --git a/libtemplate/templatefunction.c b/libtemplate/templatefunction.c index cae9124..fa0b958 100644 --- a/libtemplate/templatefunction.c +++ b/libtemplate/templatefunction.c @@ -404,6 +404,8 @@ int cTemplateFunction::GetNumericParameter(eParamType type) { return 0;
else if (type == ptMenuItemWidth)
return 0;
+ else if (type == ptHideRoot)
+ return 0;
return -1;
}
return hit->second;
@@ -1053,7 +1055,7 @@ bool cTemplateFunction::SetOverflow(string value) { }
bool cTemplateFunction::SetHideRoot(string value) {
- bool hideRoot = 0;
+ int hideRoot = 0;
if (!value.compare("true"))
hideRoot = 1;
numericParameters.insert(pair<eParamType, int>(ptHideRoot, hideRoot));
@@ -1538,6 +1540,9 @@ string cTemplateFunction::GetParamName(eParamType pt) { case ptScaleTvHeight:
name = "Scale TV Picture Height";
break;
+ case ptHideRoot:
+ name = "Hide Root View";
+ break;
case ptCache:
name = "Cache Image";
break;
diff --git a/skins/blackhole/xmlfiles/displaymenumain.xml b/skins/blackhole/xmlfiles/displaymenumain.xml index 90317d4..abf6bcc 100644 --- a/skins/blackhole/xmlfiles/displaymenumain.xml +++ b/skins/blackhole/xmlfiles/displaymenumain.xml @@ -149,7 +149,7 @@ <drawimage condition="gt({cputemp}, 80)" imagetype="skinpart" path="tachohands/temp_81" x="{areawidth}*0.53" y="5%" width="20%" height="{areawidth}*0.2"/> <drawimage condition="lt({cputemp}, 81)" imagetype="skinpart" path="tachohands/temp_{cputemp}" x="{areawidth}*0.53" y="5%" width="20%" height="{areawidth}*0.2"/> <drawimage condition="gt({gputemp}, 80)" imagetype="skinpart" path="tachohands/temp_81" x="{areawidth}*0.78" y="5%" width="20%" height="{areawidth}*0.2"/> - <drawimage condition="lt({cputemp}, 81)" imagetype="skinpart" path="tachohands/temp_{gputemp}" x="{areawidth}*0.78" y="5%" width="20%" height="{areawidth}*0.2"/> + <drawimage condition="lt({gputemp}, 81)" imagetype="skinpart" path="tachohands/temp_{gputemp}" x="{areawidth}*0.78" y="5%" width="20%" height="{areawidth}*0.2"/> </area> <area x="77%" y="51%" width="11%" height="19%" layer="4"> <drawtext align="center" y="85%" font="{regular}" fontsize="15%" color="{clrWhite}" text="CPU Temp: {cputemp}°C" /> diff --git a/views/displaypluginview.c b/views/displaypluginview.c index d073270..4c330a9 100644 --- a/views/displaypluginview.c +++ b/views/displaypluginview.c @@ -34,11 +34,11 @@ bool cDisplayPluginView::createOsd(void) { void cDisplayPluginView::Deactivate(bool hide) { Stop(); - if (!hide) { - bool hideFromTemplate = tmplView->HideView(); - if (!hideFromTemplate) - return; - esyslog("skindesigner: hiding from template"); + bool hideFromTemplate = tmplView->HideView(); + if (!hide && !hideFromTemplate) + return; + if (tvScaled) { + cDevice::PrimaryDevice()->ScaleVideo(cRect::Null); } HidePixmaps(); for (map< int, cViewGrid* >::iterator it = viewGrids.begin(); it != viewGrids.end(); it++) { |