mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-11 04:13:57 +00:00
Qt: Fix warning about array initialisation
This commit is contained in:
parent
fd063bdc31
commit
f1f2bd9c94
@ -182,7 +182,7 @@ void MappingIndicator::DrawStick()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Coordinates for an octagon
|
// Coordinates for an octagon
|
||||||
std::array<QPointF, 8> radius_octagon = {
|
std::array<QPointF, 8> radius_octagon = {{
|
||||||
QPointF(centerx, centery + stick_size), // Bottom
|
QPointF(centerx, centery + stick_size), // Bottom
|
||||||
QPointF(centerx + stick_size / sqrt(2), centery + stick_size / sqrt(2)), // Bottom Right
|
QPointF(centerx + stick_size / sqrt(2), centery + stick_size / sqrt(2)), // Bottom Right
|
||||||
QPointF(centerx + stick_size, centery), // Right
|
QPointF(centerx + stick_size, centery), // Right
|
||||||
@ -191,7 +191,7 @@ void MappingIndicator::DrawStick()
|
|||||||
QPointF(centerx - stick_size / sqrt(2), centery - stick_size / sqrt(2)), // Top Left
|
QPointF(centerx - stick_size / sqrt(2), centery - stick_size / sqrt(2)), // Top Left
|
||||||
QPointF(centerx - stick_size, centery), // Left
|
QPointF(centerx - stick_size, centery), // Left
|
||||||
QPointF(centerx - stick_size / sqrt(2), centery + stick_size / sqrt(2)) // Bottom Left
|
QPointF(centerx - stick_size / sqrt(2), centery + stick_size / sqrt(2)) // Bottom Left
|
||||||
};
|
}};
|
||||||
|
|
||||||
QPainter p(this);
|
QPainter p(this);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user