| 129 | } |
| 130 | |
| 131 | void CUIStatic::Draw() |
| 132 | { |
| 133 | if (m_bClipper) |
| 134 | { |
| 135 | Frect clip_rect; |
| 136 | if (-1 == m_ClipRect.left && -1 == m_ClipRect.right && -1 == m_ClipRect.top) |
| 137 | { |
| 138 | Frect our_rect; |
| 139 | GetAbsoluteRect(our_rect); |
| 140 | clip_rect = our_rect; |
| 141 | Frect _r; |
| 142 | GetParent()->GetAbsoluteRect(_r); |
| 143 | clip_rect.intersection(our_rect, _r); |
| 144 | } |
| 145 | else |
| 146 | clip_rect = m_ClipRect; |
| 147 | |
| 148 | UI()->PushScissor(clip_rect); |
| 149 | } |
| 150 | |
| 151 | DrawTexture(); |
| 152 | inherited::Draw(); |
| 153 | DrawText(); |
| 154 | |
| 155 | if (m_bClipper) |
| 156 | UI()->PopScissor(); |
| 157 | } |
| 158 | |
| 159 | void CUIStatic::DrawText() |
| 160 | { |
no test coverage detected