{
bChanged |= m_guiMid.SetWidth(m_width);
float x = posX, y = posY + offset, w = width, h = fScaleY * m_guiMid.GetTextureHeight();
- m_guiMidClipRect = CRect(x, y, x + w, y + h);
+ CRect rect(x, y, x + w, y + h);
+ if (rect != m_guiMidClipRect)
+ {
+ m_guiMidClipRect = rect;
+ bChanged = true;
+ }
}
else
{
{
bChanged |= m_guiMid.SetWidth(fScaleX * fFullWidth);
float x = posX, y = posY + offset, w = fScaleX * fWidth, h = fScaleY * m_guiMid.GetTextureHeight();
- m_guiMidClipRect = CRect(x, y, x + w, y + h);
+ CRect rect(x, y, x + w, y + h);
+ if (rect != m_guiMidClipRect)
+ {
+ m_guiMidClipRect = rect;
+ bChanged = true;
+ }
}
else
{