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

[Bug] oval() does not support transparent outline #324

Open
SLiV9 opened this issue Jan 15, 2022 · 0 comments · May be fixed by #763
Open

[Bug] oval() does not support transparent outline #324

SLiV9 opened this issue Jan 15, 2022 · 0 comments · May be fixed by #763

Comments

@SLiV9
Copy link
Contributor

SLiV9 commented Jan 15, 2022

The following example (in Rust) draws an oval and a rectangle (as expected), but the oval has a dark outline:

#[no_mangle]
fn update() {
    unsafe { *DRAW_COLORS = 2 }
    oval(40, 20, 80, 40);

    unsafe { *DRAW_COLORS = 2 }
    rect(40, 80, 80, 40);
}

I would expect this code (and the equivalent DRAW_COLORS = 0x02) to draw a filled oval with no outline.

This seems to be either a bug or the documentation could be more explicit, especially because the hello world example also uses DRAW_COLORS = 2.

Version

w4 --version is 2.2.0

Workaround

Replacing 2 with 0x22 works as it draws the outline in the same color as the rest of the oval.

@peter-jerry-ye peter-jerry-ye linked a pull request Sep 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant