| 4 | #include "UIMap.h" |
| 5 | |
| 6 | void UIMiniMapZoom(CUIMiniMap* wnd, float scale) |
| 7 | { |
| 8 | Fvector2 wnd_size; |
| 9 | float zoom_factor = float(wnd->GetParent()->GetWndRect().width()) / 100.0f; |
| 10 | wnd_size.x = wnd->BoundRect().width() * zoom_factor * scale /*m_fScale*/; |
| 11 | wnd_size.y = wnd->BoundRect().height() * zoom_factor * scale /*m_fScale*/; |
| 12 | wnd->SetWndSize(wnd_size); |
| 13 | } |
| 14 | |
| 15 | void UIMiniMapInit(CUIMiniMap* wnd) |
| 16 | { |
no test coverage detected