SFML community forums
Help => Window => Topic started by: vidjogamer on April 06, 2011, 07:29:02 pm
-
SFML 2.0
Works perfectly fine on WinXP.
if(Event.Key.Code == sf::Key::Num1)
{
VideoMode videoMode = sf::VideoMode::GetDesktopMode();
ContextSettings windowSettings = sf::ContextSettings(0,0,0);
if(winMode == FULLSCREEN)
{
window->Create(videoMode, "GameEngine", sf::Style::Default|sf::Style::Close, windowSettings);
windowMode = WINDOW;
window->EnableVerticalSync(true);
}
else if(winMode == WINDOW)
{
window->Create(videoMode, "GameEngine", sf::Style::Fullscreen|sf::Style::Close, windowSettings);
windowMode = FULLSCREEN;
window->EnableVerticalSync(true);
}
}
-
Can you run gdb and show me the call stack?
-
Sorry, Im not going to have access to my linux machine for a few days.