| 3 | namespace OpenLoco::Gfx |
| 4 | { |
| 5 | Ui::Rect RenderTarget::getDrawableRect() const |
| 6 | { |
| 7 | auto zoom = zoomLevel; |
| 8 | auto left = x >> zoom; |
| 9 | auto top = y >> zoom; |
| 10 | auto right = (width >> zoom) + left; |
| 11 | auto bottom = (height >> zoom) + top; |
| 12 | return Ui::Rect::fromLTRB(left, top, right, bottom); |
| 13 | } |
| 14 | |
| 15 | Ui::Rect RenderTarget::getUiRect() const |
| 16 | { |
no outgoing calls
no test coverage detected