it does make sense to do this here

master
Zithia Satazaki 2022-03-28 17:27:41 -04:00
parent 7809e2ab58
commit bf84a1dc1f
1 changed files with 2 additions and 2 deletions

View File

@ -132,9 +132,9 @@ void PatchboardScene::drawBackground(QPainter* painter, const QRectF& rect) {
const constexpr int step = 32; // grid size
painter->setPen(QPen(QColor(127, 127, 127, 63), 1));
for (auto y = std::floor(rect.top() / step) * step + .5; y < rect.bottom(); y += step)
for (auto y = std::floor(rect.top() / step) * step + .5; y < rect.bottom(); y += step) // NOLINT
painter->drawLine(QPointF(rect.left(), y), QPointF(rect.right(), y));
for (auto x = std::floor(rect.left() / step) * step + .5; x < rect.right(); x += step)
for (auto x = std::floor(rect.left() / step) * step + .5; x < rect.right(); x += step) // NOLINT
painter->drawLine(QPointF(x, rect.top()), QPointF(x, rect.bottom()));
}