| 422 | } |
| 423 | |
| 424 | void CUIStatic::ClipperOff(CUIStaticItem& UIStaticItem) |
| 425 | { |
| 426 | m_bClipper = false; |
| 427 | |
| 428 | Frect out_rect; |
| 429 | |
| 430 | out_rect.top = 0; |
| 431 | out_rect.bottom = GetHeight(); |
| 432 | out_rect.left = 0; |
| 433 | out_rect.right = GetWidth(); |
| 434 | |
| 435 | Frect r; |
| 436 | r.x1 = out_rect.left; |
| 437 | r.x2 = out_rect.right < UIStaticItem.GetOriginalRectScaled().width() ? out_rect.right : UIStaticItem.GetOriginalRectScaled().width(); |
| 438 | |
| 439 | r.y1 = out_rect.top; |
| 440 | r.y2 = out_rect.bottom < UIStaticItem.GetOriginalRectScaled().height() ? out_rect.bottom : UIStaticItem.GetOriginalRectScaled().height(); |
| 441 | UIStaticItem.SetRect(r); |
| 442 | } |
| 443 | |
| 444 | void CUIStatic::ClipperOff() { ClipperOff(m_UIStaticItem); } |
| 445 |
no test coverage detected