Closed chipshort closed 10 years ago
I'm guessing you resized the window by hand and not using haxepunk/openfl ? Doing so produce weird window size and even weirder window ratio, probably inducing rounding errors yeah.
You can prevent the window from being manualy resized in your project.xml
<window resizable="false" />
Right now it seems even using openfl you can't resize the window on the fly, they plan to use a newer version of SDL that should allow that.
Thanks for answering and yes, I resized it by hand. My game runs in fullscreen, so I have no control about the window size. Could the same thing happen in fullscreen on some screen sizes?
If your game run in fullscreen there should be no issues, they are many screen resolution but their all round numbers. The only thing is the screen ratio that can stretch your game.
When I was using 1366x768 (my screen size) as initial window size and resized the window, black lines appeared. They only appear on some window sizes, have different distance on different sizes and appear horizontally and vertically (sometimes both, sometimes only one of them). I guess it has to do with rounding or something like that, but I don't know.