Skip to content

Conversation

ConradoBadenas
Copy link

Monday, 13th October: In https://t.me/c/2140206582/3299 by @thearduinoguy the effect of WinScrollLeft is seen on a game screen he is programming.

Tuesday, 14th October: I replied "The WinScroll* SUBs first scroll the Display File (black & white, pixels), then the Attributes. Therefore, you can see a magenta diamond on black paper that sometimes is seen as black diamond on yellow paper. To avoid this effect, the WinScrollLeft SUB should scroll "pixels" and attributes "at the same time" (on a character by character basis) or "almost the same time" (on a line-of-characters by line-o-c basis).
The same mismatch between "pixels" and attributes could happen (maybe, maybe not) with the doublebuffer technique if the memcopy first copies the Display File then the Attributes.
By copying Display File and Attributes on a char-by-char basis, such mismatchs in colour do not happen,"

He replied "Sounds like the WinScroll routine needs rewriting"

And Boriel added "Yes, that could be nice to have (perhaps the routine will take a few more bytes, but IMHO It's worh it).
If anyone wants to issue a PR for this, I'll review it and integrate it."

Sunday, 19th October: So, here it is!

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