Skip to content

Commit

Permalink
process border image after base image to ensure it's positioned corre…
Browse files Browse the repository at this point in the history
…ctly the first frame the base image is available
  • Loading branch information
Jonathan Marshall committed Jun 3, 2013
1 parent 59fff51 commit 75828ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/guilib/GUIBorderedImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ CGUIBorderedImage::~CGUIBorderedImage(void)

void CGUIBorderedImage::Process(unsigned int currentTime, CDirtyRegionList &dirtyregions)
{
CGUIImage::Process(currentTime, dirtyregions);
if (!m_borderImage.GetFileName().IsEmpty() && m_texture.ReadyToRender())
{
CRect rect = CRect(m_texture.GetXPosition(), m_texture.GetYPosition(), m_texture.GetXPosition() + m_texture.GetWidth(), m_texture.GetYPosition() + m_texture.GetHeight());
Expand All @@ -52,7 +53,6 @@ void CGUIBorderedImage::Process(unsigned int currentTime, CDirtyRegionList &dirt
if (m_borderImage.Process(currentTime))
MarkDirtyRegion();
}
CGUIImage::Process(currentTime, dirtyregions);
}

void CGUIBorderedImage::Render()
Expand Down

0 comments on commit 75828ba

Please sign in to comment.