SFML community forums

Help => Window => Topic started by: seba174 on September 30, 2017, 01:39:40 am

Title: Error while creating sf::RenderWindow with size (0,0)
Post by: seba174 on September 30, 2017, 01:39:40 am
Hi,
i found a problem with RenderWindow (or my software). When i try to set it's size for (0,0), the app crashes. I found it when i was porting my game on Linux from Windows. On Windows this problem doesn't occur (at least for me).

OS: Linux Mint 18.2
Compiler: g++ 5.4.0
SFML: 2.4.2

I had build SFML from source by myself, as a Linux build from official builds doesn't work for me.

Code to reproduce issue:
#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(0,0), "Error");
    return 0;
}
 

Error message:
(https://i.imgur.com/Q0COPm5.png)