The original is commented out.
_window.Create(sf::VideoMode::GetMode(0), "Mitashi", sf::Style::Fullscreen);// _window.Create(sf::VideoMode(SCREEN_WIDTH, SCREEN_HEIGHT, 32), "Mitashi", sf::Style::Close, settings);
Thanks.
_window.Create(sf::VideoMode::GetMode(0), "Mitashi", sf::Style::Fullscreen);// _window.Create(sf::VideoMode(SCREEN_WIDTH, SCREEN_HEIGHT, 32), "Mitashi", sf::Style::Close, settings);
Quote:Original post by Antonym
Hello I am using SFML and ran into a little problem. I've been running my program on windowed mode and decided to try and make it fullscreen. When I do this the image appears shifted to a corner. I am a little bit clueless about this.
_window.Create(sf::VideoMode(SCREEN_WIDTH, SCREEN_HEIGHT, 32), "Mitashi", sf::style::Fullscreen);
handle_resize(SCREEN_WIDTH,SCREEN_HEIGHT);void GameEngine::handle_resize(int w, int h){ if (h==0) // Prevent A Divide By Zero By { h=1; // Making Height Equal One } glViewport(0, 0, w, h); glMatrixMode(GL_PROJECTION); //Switch to setting the camera perspective //Set the camera perspective glLoadIdentity(); //Reset the camera // Calculate The Aspect Ratio Of The Window// gluPerspective(45.0f,(GLfloat)w/(GLfloat)h,0.1f,100.0f); glOrtho(0.0f, SCREEN_WIDTH, 0, SCREEN_HEIGHT, -1.0f, 1.0f); glMatrixMode(GL_MODELVIEW); // Select The Modelview Matrix glLoadIdentity(); // Reset The Modelview Matrix}
Quote:Original post by evillive2
Sounds like the video card or monitor doesn't fully support the resolution you are requesting. You won't notice this so much in windowed mode as it is probably emulated in software however I have noticed that full screen tries to do it's best but sometimes just doesn't get it right.