Hopson97 / MineCraft-One-Week-Challenge

I challenged myself to see if I could create a voxel game (Minecraft-like) in just one week using C++ and OpenGL, and here is the result
https://www.youtube.com/watch?v=Xq3isov6mZ8
MIT License
2.65k stars 379 forks source link

Strange behaviour with more than one monitor #60

Open StaleHyena opened 7 years ago

StaleHyena commented 7 years ago

More specifically, when in fullscreen the game spans multiple monitors like in the picture. I'm trying to find a solution, but i'm a noob when it comes to openGL https://imgur.com/SdBnko8

Hopson97 commented 7 years ago

That's weird, it only goes to a single monitor for me o_O

StaleHyena commented 7 years ago

undefined behaviour it is then, i'm trying to debug it

StaleHyena commented 7 years ago

Pinned down the source, sf::VideoMode::getDesktopMode() returns the combined width of the monitors. I think this needs a "pre-game" GUI to setup to get right

StaleHyena commented 7 years ago

Okay, using the sf::VideoMode::getFullscreenModes() kinda works, but the user must choose what mode to use

Hopson97 commented 6 years ago

I have reverted the code base to an older version, it could be possible it works now :)