mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
xbmc: add PR4473
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
0fc44fc909
commit
0feab90d02
@ -0,0 +1,44 @@
|
||||
From 471d0d1564a5d484374c871eeed888f2e7d6014e Mon Sep 17 00:00:00 2001
|
||||
From: Bl4ck09 <bl4ck09@me.com>
|
||||
Date: Wed, 26 Mar 2014 22:57:47 +0100
|
||||
Subject: [PATCH] Enable constants for centerleft and centertop
|
||||
|
||||
---
|
||||
xbmc/guilib/GUIIncludes.cpp | 10 ++++++----
|
||||
1 file changed, 6 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/xbmc/guilib/GUIIncludes.cpp b/xbmc/guilib/GUIIncludes.cpp
|
||||
index c622d1a..1be35e7 100644
|
||||
--- a/xbmc/guilib/GUIIncludes.cpp
|
||||
+++ b/xbmc/guilib/GUIIncludes.cpp
|
||||
@@ -50,11 +50,13 @@
|
||||
m_constantNodes.insert("posx");
|
||||
m_constantNodes.insert("posy");
|
||||
m_constantNodes.insert("left");
|
||||
+ m_constantNodes.insert("centerleft");
|
||||
m_constantNodes.insert("right");
|
||||
- m_constantNodes.insert("centerx");
|
||||
+ m_constantNodes.insert("centerright");
|
||||
m_constantNodes.insert("top");
|
||||
+ m_constantNodes.insert("centertop");
|
||||
m_constantNodes.insert("bottom");
|
||||
- m_constantNodes.insert("centery");
|
||||
+ m_constantNodes.insert("centerbottom");
|
||||
m_constantNodes.insert("width");
|
||||
m_constantNodes.insert("height");
|
||||
m_constantNodes.insert("offsetx");
|
||||
@@ -218,9 +220,9 @@ void CGUIIncludes::ResolveIncludesForNode(TiXmlElement *node, std::map<INFO::Inf
|
||||
{
|
||||
std::string value = tag->ValueStr();
|
||||
bool skip(false);
|
||||
- if (hasPosX && (value == "left" || value == "right" || value == "centerx"))
|
||||
+ if (hasPosX && (value == "left" || value == "right" || value == "centerleft" || value == "centerright"))
|
||||
skip = true;
|
||||
- if (hasPosY && (value == "top" || value == "bottom" || value == "centery"))
|
||||
+ if (hasPosY && (value == "top" || value == "bottom" || value == "centertop" || value == "centerbottom"))
|
||||
skip = true;
|
||||
// we insert at the end of block
|
||||
if (!skip)
|
||||
--
|
||||
1.8.5.5
|
||||
|
Loading…
x
Reference in New Issue
Block a user