Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

compute correct render rect for the label control - fixes #11651 (lab…

…els without <height> specified)
  • Loading branch information...
commit 1c2d0e17ab2cf0a50b33540bc5f403e9fd6d5ca4 1 parent 1fb3d87
Jonathan Marshall authored
View
5 xbmc/guilib/GUILabelControl.cpp
@@ -123,6 +123,11 @@ void CGUILabelControl::Process(unsigned int currentTime, CDirtyRegionList &dirty
CGUIControl::Process(currentTime, dirtyregions);
}
+CRect CGUILabelControl::CalcRenderRegion() const
+{
+ return m_label.GetRenderRect();
+}
+
void CGUILabelControl::Render()
{
m_label.Render();
View
1  xbmc/guilib/GUILabelControl.h
@@ -51,6 +51,7 @@ class CGUILabelControl :
virtual bool OnMessage(CGUIMessage& message);
virtual CStdString GetDescription() const;
virtual float GetWidth() const;
+ virtual CRect CalcRenderRegion() const;
const CLabelInfo& GetLabelInfo() const { return m_label.GetLabelInfo(); };
void SetLabel(const std::string &strLabel);
Please sign in to comment.
Something went wrong with that request. Please try again.