Ticket #7965: MythUI-negative.patch
File MythUI-negative.patch, 786 bytes (added by , 14 years ago) |
---|
-
libs/libmythui/mythrect.cpp
old new void MythRect::CalculateArea(MythRect pa 61 61 X = (int) (m_percentX * (float)m_parentArea.width()); 62 62 if (m_percentY > 0.0) 63 63 Y = (int) (m_percentY * (float)m_parentArea.height()); 64 64 if (m_percentWidth > 0.0) 65 65 w = (int) (m_percentWidth * (float)(m_parentArea.width() - X)); 66 else if (w < 0) 67 w += m_parentArea.width() + 1; 66 68 if (m_percentHeight > 0.0) 67 69 h = (int) (m_percentHeight * (float)(m_parentArea.height() - Y)); 70 else if (h < 0) 71 h += m_parentArea.height() + 1; 68 72 69 73 QRect::setRect(X,Y,w,h); 70 74 71 75 m_needsUpdate = false; 72 76 }