Qt: Fix game grid selection rect bottom/right edges

This commit is contained in:
Stenzek
2025-11-13 23:44:04 +10:00
parent 35e3d9a4d1
commit 3099f5f3d2

View File

@@ -1685,7 +1685,8 @@ public:
painter->setBrush(Qt::NoBrush);
// Draw border manually instead of with drawRect to avoid joins at corners.
const QRect border_rect = option.rect.adjusted(1, 1, -1, -1);
// Using the top-left pixel causes rendering issues at high-dpi.
const QRect border_rect = option.rect.adjusted(1, 1, 0, 0);
const std::array<QPoint, 4 * 2> line_points = {{
border_rect.topLeft(),
border_rect.topRight(),