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

Wrap rendering operations inside a try-catch #47

Merged
merged 2 commits into from
Jan 3, 2021
Merged

Conversation

JD557
Copy link
Owner

@JD557 JD557 commented Jan 3, 2021

Wraps the put pixel operations inside a try catch block that swallows all exceptions.

This doesn't seem to have a performance impact on valid operations and is a nice step towards #45, where a bad putPixel call should not blow everything up.

I also wrapped the AwtCanvas#redaw operation, which should stop throwing exceptions when the canvas is closed.

@JD557 JD557 added this to the 0.2.0 milestone Jan 3, 2021
@JD557 JD557 self-assigned this Jan 3, 2021
@JD557 JD557 merged commit ac06590 into master Jan 3, 2021
@JD557 JD557 deleted the put-pixel-try-catch branch January 3, 2021 17:02
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 this pull request may close these issues.

1 participant