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

Restore old pen line code #672

Closed
wants to merge 1 commit into from

Conversation

adroitwhiz
Copy link
Contributor

Resolves

Resolves #670
Resolves #671

Proposed Changes

This reverts the pen line drawing code to the one originally written by mzgoddard before I decided to rewrite it.

The pen lines don't look as smooth now but hopefully this should get rid of all the annoying cross-device issues.

Reason for Changes

This should once and for all fix all the annoying device-specific pen bugs.

Test Coverage

I no longer have iOS devices to test on. @RexScratch can you test this on https://adroitwhiz.github.io/scratch-gui/revert-pen/? (It may take a bit for GitHub Pages to stop caching the 404 page)

@RexScratch
Copy link

This fixes #671 on both the iPhone and iPad.

This does not fix #670 on the iPhone; the result of the repro project is the same, with nothing shown.

This almost fixes #670 on the iPad, but there is another issue: diagonal lines with endpoints far offscreen are not drawn correctly:
ScratchOldPeniPad
The diagonal lines should span from corner to corner (as they do on my laptop) due to Scratch restricting the position of the sprite, but they don't. Instead, they are at 45-degree angles, as if the sprite had unlimited movement.

@fsih
Copy link
Contributor

fsih commented Aug 27, 2020

Hmm, if it's not fixing 670 it doesn't seem worth reverting pen antialiasing

@adroitwhiz
Copy link
Contributor Author

There is no escape from the world of suck that is Apple graphics drivers so let's not make pen lines look worse in the process

@adroitwhiz adroitwhiz closed this Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants