Hi there. I use SFML 2.2.
I have an issue regarding fullscreen mode. Here's a test program:
#include <SFML/Graphics.hpp>
int main() {
std::vector<sf::VideoMode> modes = sf::VideoMode::getFullscreenModes();
sf::RenderWindow window(modes[0], "Test", sf::Style::Fullscreen);
while (window.isOpen()) {
sf::Event event;
while (window.pollEvent(event)) {
if (event.type == sf::Event::Closed) {
window.close();
}
}
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Escape)) {
window.close();
}
window.clear(sf::Color::White);
window.display();
}
return 0;
}
1) When I compile and execute it on my home PC (ubuntu 13.10 32bit, GeForce 7900 GS video card, NVidia driver version 304.117) it works correctly.
2) But when I compile and execute it on my Asus K56C notebook (ubuntu 14.04.1 64bit, built-in Intel video card and GeForce 635M, using GeForce card at that moment, NVidia drivers versison 331.113), it displays the white square on the leftmost topmost part of the screen (i.e. it occupies 1/4 part of the screen), leaving the rest of the screen being black.
After I press Escape, the program closes and it somehow resets my XFCE4 Desktop Environment (the issue the same: the desktop occupies only the 1/4 part of the screen, and I can work only in that area, the rest of the screen is black). What I mean is that I can no longer move my mouse along all my screen, it stucks in that area of the screen. It looks like as if my XFCE4 Desktop Environment was placed into the 1/4 area of the screen.
Something went wrong. To "fix" that I have to go to the XFCE4 Monitor settings and reset my screen resolution back to 1366x768 to fix that.
The game
Zloxx II misbehaves exactly in the same way.
The weird thing is that
glxgears -fullscreen
works as expected.
I thought maybe it is Nvidia bug, but nvidia-settings shows that Nvidia drivers are installed and it reports no problems.
If you need a screenshot of what's going on, I can post it later. Thank you.
UPD: Here're the photos:
1) XFCE4, running a terminal. We're ready to run the test SFML program:
https://www.dropbox.com/s/b4o33x9sdccbbbb/2015-01-13%2011.37.10.jpg?dl=02) running SFML program:
https://www.dropbox.com/s/mhze6wkvz6g77aa/2015-01-13%2011.37.25.jpg?dl=03) pressed an Escape, returned to the XFCE4 Desktop Environment, which is now got "broken":
https://www.dropbox.com/s/cazi39u9t4aiu3c/2015-01-13%2011.38.07.jpg?dl=0In case the links above don't work I reposted the photos there:
1)
2)
3)
TL;TR:Chances are my issue is similar to
the issue #436.
Should I file a bug report?