Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rect with outline wraps to other side of screen #504

Closed
JerwuQu opened this issue Aug 18, 2022 · 1 comment
Closed

rect with outline wraps to other side of screen #504

JerwuQu opened this issue Aug 18, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@JerwuQu
Copy link
Contributor

JerwuQu commented Aug 18, 2022

An off-screen rect with outline placed such that its width ends one pixel before the screen starts will incorrectly wrap to the other side of the screen.

Without outline it behaves correctly.

#include "wasm4.h"

void update () {
	*DRAW_COLORS = 0x43;

	hline(0, 5, 160);
	hline(0, 25, 160);
	hline(0, 45, 160);
	hline(0, 65, 160);
	hline(0, 85, 160);

	rect(-10, 10, 15, 10);
	rect(-10, 30, 11, 10);
	rect(-10, 50, 10, 10); // Boom!
	rect(-10, 70, 9, 10);
}

wasm4-screenshot (47)

@aduros aduros added the bug Something isn't working label Aug 30, 2022
@aduros
Copy link
Owner

aduros commented Dec 4, 2022

Looks like this was fixed by #598 🎉

@aduros aduros closed this as completed Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants