| 821 | } |
| 822 | |
| 823 | void DrawWidget(const Rect &r, WidgetID widget) const override |
| 824 | { |
| 825 | switch (widget) { |
| 826 | case WID_SCRD_LOG_PANEL: |
| 827 | this->DrawWidgetLog(r); |
| 828 | break; |
| 829 | |
| 830 | default: |
| 831 | if (IsInsideBS(widget, WID_SCRD_COMPANY_BUTTON_START, MAX_COMPANIES)) { |
| 832 | this->DrawWidgetCompanyButton(r, widget, WID_SCRD_COMPANY_BUTTON_START); |
| 833 | } |
| 834 | break; |
| 835 | } |
| 836 | } |
| 837 | |
| 838 | /** |
| 839 | * Draw a company button icon. |
nothing calls this directly
no test coverage detected