From aa81cae6cfabb55d09476cc64a89ccc72793c32b Mon Sep 17 00:00:00 2001 From: vfjpl Date: Tue, 8 Dec 2020 16:34:51 +0100 Subject: [PATCH] [sprite] don't set default rect before the user provided one --- src/SFML/Graphics/Sprite.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SFML/Graphics/Sprite.cpp b/src/SFML/Graphics/Sprite.cpp index 056302cfd..145c48bd7 100644 --- a/src/SFML/Graphics/Sprite.cpp +++ b/src/SFML/Graphics/Sprite.cpp @@ -46,7 +46,7 @@ Sprite::Sprite(const Texture& texture) : m_texture (NULL), m_textureRect() { - setTexture(texture); + setTexture(texture, true); } @@ -55,8 +55,8 @@ Sprite::Sprite(const Texture& texture, const IntRect& rectangle) : m_texture (NULL), m_textureRect() { - setTexture(texture); setTextureRect(rectangle); + setTexture(texture, false); }