hello, probably something stupid I'm missing with this but I'm sure one of you smart people can help me out. Every time I start-up my game I get a small white box in the upper corner. It is only there for a split second, and one the game goes through a draw cycle it's gone, but it is still off-putting regardless. Basically I have my RenderWindow set to a certain video resolution, then I stretch it in 3X to get a pixel-y look. The white box is the actual video-resolution. Below I have some quick code so you can see what I mean.
#include <SFML/Graphics.hpp>
using namespace std;
int main()
{
sf::RenderWindow window;
window.create(sf::VideoMode(320, 240, 32), "test");
//window.clear(sf::Color::Blue);//Thought I would try and through a clear in a number of points in the code
//Obviously, it didn't work
window.setSize(sf::Vector2u(960,720));
window.setPosition(sf::Vector2i(200,100));
window.setFramerateLimit(60);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)window.close();
}
}
return 0;
}
Thx for any quick fixes you may have
-Sam