mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +08:00
Minor improvement in VertexArray::getBounds
This commit is contained in:
parent
692240f60d
commit
d716b3657c
@ -113,7 +113,7 @@ FloatRect VertexArray::getBounds() const
|
|||||||
float right = m_vertices[0].position.x;
|
float right = m_vertices[0].position.x;
|
||||||
float bottom = m_vertices[0].position.y;
|
float bottom = m_vertices[0].position.y;
|
||||||
|
|
||||||
for (std::size_t i = 0; i < m_vertices.size(); ++i)
|
for (std::size_t i = 1; i < m_vertices.size(); ++i)
|
||||||
{
|
{
|
||||||
Vector2f position = m_vertices[i].position;
|
Vector2f position = m_vertices[i].position;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user