hello I have 2 problems
1. when i first tried to make my map editor I used a render window with videomode getdesktopmode and that was okay but afterwards when i needed the screen resolution i used getsize on the render window and get a wrong with I don't know about the height I didn't need it. here is a code snippet.
sf::RenderWindow window(sf::VideoMode().getDesktopMode(), "SFML works!");
std::cout << sf::VideoMode().getDesktopMode().width << std::endl;
...
size.x = wind.getSize().x;
size.y = 32;
std::cout << size.x << " : " << size.y << std::endl;
...
the results on the 2 cout don't match I also see it on my drawing
2.then i tried to set a standard resolution for the program (800,600) and when the user resize's change the drawing
like this.
sf::RenderWindow window(sf::VideoMode(800,600), "SFML works!");
...
if(event.type == sf::Event::Resized)
{
System::resized(event.size.width,event.size.height);
std::cout << event.size.width << std::endl;
}
...
at system resized
size.x = x;
please help