I trying to create a rectangle of size 1 width 2 height, but in the screen appears a 2 width 4 height.
Here is the code:
sf::RectangleShape *rectangle = new sf::RectangleShape;
rectangle->setSize(sf::Vector2f(width, height));
rectangle->setFillColor(sf::Color(color[0], color[1], color[2], color[3]));
rectangle->setPosition(x, y);
rectangle->move(offx * -1, offy * -1);
rectangle->setFillColor(sf::Color(oColor.r, oColor.g, oColor.b, opacity));