46
Graphics / Swapping fullscreen and windowed mode
« on: July 26, 2010, 01:38:31 pm »
Thanks works like charm and I don't have to update pointer through all classes.
One more question, SFML outputs this line into console while switching to fullscreen: "The requested video mode is not available, switching to a valid mode".
It comes to fullscren fine, there's just little blink, but I would like to know what's that "valid" mode when this one isn't:
And does it point to sf::VideoMode or sf::Style?
Edit: Nevermind I got it, it's complaining about screen resolution. Is there way to check if the screen resolution is valid for computer?
Edit 2: got that too... just for anyone looking there:
or
Thanks for help with that switching though
One more question, SFML outputs this line into console while switching to fullscreen: "The requested video mode is not available, switching to a valid mode".
It comes to fullscren fine, there's just little blink, but I would like to know what's that "valid" mode when this one isn't:
Code: [Select]
App.Create(sf::VideoMode(VAL->ScreenX, VAL->ScreenY, 32), caption,sf::Style::Fullscreen)
And does it point to sf::VideoMode or sf::Style?
Edit: Nevermind I got it, it's complaining about screen resolution. Is there way to check if the screen resolution is valid for computer?
Edit 2: got that too... just for anyone looking there:
Code: [Select]
sf::VideoMode::GetModesCount
sf::VideoMode::GetMode
or
Code: [Select]
sf::VideoMode::IsValid
Thanks for help with that switching though