Skip to content

Conversation

MaybeMaru
Copy link
Contributor

Due to some issue with openfl size render rounding using FlxBGSprite can create a small one pixel gap when fullscreened.

Before After
image image

Heres my test code:

class PlayState extends FlxState
{
	override public function create()
	{
		super.create();
		FlxG.camera.bgColor = FlxColor.GREEN;
		var bgSprite = new FlxBGSprite();
		bgSprite.color = FlxColor.RED;
		add(bgSprite);
	}
}

@Geokureli Geokureli merged commit 48833dc into HaxeFlixel:dev Mar 12, 2025
11 checks passed
@Geokureli Geokureli added this to the 6.1.0 milestone Mar 12, 2025
@Geokureli Geokureli changed the title Small FlxBGSprite size fix FlxBGSprite: Cover entire view Mar 20, 2025
@ACrazyTown
Copy link
Contributor

I wonder if the underlying issue is related to #3334

@MaybeMaru MaybeMaru deleted the bgsprite-fix branch March 21, 2025 22:41
@Geokureli
Copy link
Member

I wonder if the underlying issue is related to #3334

Yeah seems like the same symptom of the same issue, I'm not sure there's anything we can do on our end other than making it a little bigger or using a different bg color

MaybeMaru added a commit to MaybeMaru/flixel that referenced this pull request Jul 16, 2025
Had to do this because of the current antialiasing problems with openfl issue, similarly to the problem resolved in HaxeFlixel#3397
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants