Hi!
I followed this tutorial to get an icon for my sfml-project.
https://github.com/SFML/SFML/wiki/Tutorial:-Create-and-Use-SetIconI integrated the call to window.setIcon into my code, just after creating the window, but that did not work - the window had the default icon of my operating system. When I moved the call into my main loop it kinda worked like expected except the icon flickers. every few seconds parts of the icon disappear or change colours.
I don't really see why this would happen. It's like something overrides the rendering of the icon, but I don't know what could do that.
I tried a minimal example where the main method only created a window and had an empty loop (only calling window.display) and tried calling window.setIcon before and inside of the main loop, which had the same result. Is this a bug in my version of sfml or something like this? I'm on gentoo linux and using sfml version 2.3.2.
Where should the call to setIcon be placed? Should it still work like in the tutorial?
You can find my code on
https://github.com/Gotos/Cute3DSCaptureI hope you can help. Thanks in advance!