Ticket #7965: MythUI-negative-v2.patch
File MythUI-negative-v2.patch, 672 bytes (added by , 14 years ago) |
---|
-
libs/libmythui/mythrect.cpp
old new void MythRect::CalculateArea(MythRect pa 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() - X + 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() - Y + 1; 68 72 69 73 QRect::setRect(X,Y,w,h); 70 74