0x0048DE97
| 57 | |
| 58 | // 0x0048DE97 |
| 59 | static void drawStationNames(Gfx::DrawingContext& drawingCtx) |
| 60 | { |
| 61 | const auto& rt = drawingCtx.currentRenderTarget(); |
| 62 | |
| 63 | Gfx::RenderTarget unZoomedRt = rt; |
| 64 | unZoomedRt.zoomLevel = 0; |
| 65 | unZoomedRt.x >>= rt.zoomLevel; |
| 66 | unZoomedRt.y >>= rt.zoomLevel; |
| 67 | unZoomedRt.width >>= rt.zoomLevel; |
| 68 | unZoomedRt.height >>= rt.zoomLevel; |
| 69 | |
| 70 | drawingCtx.pushRenderTarget(unZoomedRt); |
| 71 | |
| 72 | for (const auto& station : StationManager::stations()) |
| 73 | { |
| 74 | if ((station.flags & StationFlags::flag_5) != StationFlags::none) |
| 75 | { |
| 76 | continue; |
| 77 | } |
| 78 | |
| 79 | bool isHovered = (World::hasMapSelectionFlag(World::MapSelectionFlags::hoveringOverStation)) |
| 80 | && (station.id() == Input::getHoveredStationId()); |
| 81 | |
| 82 | drawStationName(drawingCtx, station, rt.zoomLevel, isHovered); |
| 83 | } |
| 84 | |
| 85 | drawingCtx.popRenderTarget(); |
| 86 | } |
| 87 | |
| 88 | // 0x004977E5 |
| 89 | static void drawTownNames(Gfx::DrawingContext& drawingCtx) |
no test coverage detected