RenderWindow window will not display at resolutions like 1920x1200 or 1920x1280. Everything below 1680x1050 works. The window is actually there, but it is like it is invisible. Nowhere to be seen. I know its there because if I hover my mouse over the application in the taskbar, I can actually see the mini-preview of it. However, clicking on it or alt-tabbing to select it has no effect. The window never shows up.
sf::RenderWindow window( sf::VideoMode( 1980, 1020 ), "title" );
Tmx::Map *map = NULL;
SFMLConsole console( &window );
GameMainMenu menu( GameMenu::ILOGO_TMENU, "fonts/US101.ttf",
32, sf::Color( 0, 0, 0, 255 ), "assets/menu/mainbg.png" );
initMenu( menu );
while( window.isOpen() ) {
sf::Event event;
while( window.pollEvent( event ) ) {
if ( event.type == sf::Event::Closed )
window.close();
if ( event.type == sf::Event::KeyPressed ) {
if ( event.key.code == sf::Keyboard::Tilde ) {
if ( !console.isOpen() )
console.openConsole();
else
console.closeConsole();
}
if ( event.key.code == sf::Keyboard::Escape )
window.close();
}
if ( event.type == sf::Event::TextEntered ) {
if ( console.isOpen() ) {
console.update( event );
}
}
}
menu.update( &window, event );
if ( console.isOpen() ) {
console.drawConsole( &window );
}
window.display();
}