HaxePunk / tiled

Tiled TMX import for HaxePunk
50 stars 18 forks source link

Black lines #8

Closed chipshort closed 10 years ago

chipshort commented 11 years ago

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. issue

ibilon commented 11 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.

chipshort commented 11 years ago

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?

ibilon commented 11 years ago

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.