| 493 | } |
| 494 | |
| 495 | void CUi::UpdateClipping() |
| 496 | { |
| 497 | if(IsClipped()) |
| 498 | { |
| 499 | const CUIRect *pRect = ClipArea(); |
| 500 | const float XScale = Graphics()->ScreenWidth() / Screen()->w; |
| 501 | const float YScale = Graphics()->ScreenHeight() / Screen()->h; |
| 502 | Graphics()->ClipEnable((int)(pRect->x * XScale), (int)(pRect->y * YScale), (int)(pRect->w * XScale), (int)(pRect->h * YScale)); |
| 503 | } |
| 504 | else |
| 505 | { |
| 506 | Graphics()->ClipDisable(); |
| 507 | } |
| 508 | } |
| 509 | |
| 510 | int CUi::DoButtonLogic(const void *pId, int Checked, const CUIRect *pRect, const unsigned Flags) |
| 511 | { |
nothing calls this directly
no test coverage detected