I have just started working with SFML and was trying to create a borderless fullscreen window.
I thought using the following code would work:
VideoMode desktop = VideoMode().getDesktopMode();
RenderWindow window(desktop, "Title", Style::None);
while (window.isOpen())
{
Event e;
while (window.pollEvent(e))
{
if (e.type == Event::Closed)
window.close();
}
}
but for some reason the app will run but the window wont be visible. I can't click through it but even if i alt-tab and back again it doesnt cause the window to display. I can only assume I have missed out a step or something but both fullscreen and windowed work using this code.
Any help would be appreciated, thank you.
Using: SFML 2.4.2 on Win10 with GeForce 750Ti