| 119 | } |
| 120 | |
| 121 | static void drawCylinderRule(unsigned min, unsigned max) |
| 122 | { |
| 123 | ImGui::TableNextRow(); |
| 124 | ImGui::TableNextColumn(); |
| 125 | for (int cylinder = min; cylinder <= max; cylinder++) |
| 126 | { |
| 127 | ImGui::TableNextColumn(); |
| 128 | |
| 129 | auto text = fmt::format("c{}", cylinder); |
| 130 | ImGui::SetCursorPosX(ImGui::GetCursorPosX() + |
| 131 | ImGui::GetColumnWidth() / 2 - |
| 132 | ImGui::CalcTextSize(text.c_str()).x / 2); |
| 133 | ImGui::Text("%s", text.c_str()); |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | static void drawPhysicalMap(unsigned minPhysicalCylinder, |
| 138 | unsigned maxPhysicalCylinder, |
no test coverage detected