-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Reduce repetitive output color changes #65118
Conversation
39d5363
to
b97532e
Compare
5531399
to
8096c55
Compare
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered. |
@sparr care to resolve conflicts? |
Sure, although I might abandon a few of them if the code has changed too much in the last year. |
Working on the conflicts now. Glad to see some of the imgui stuff replacing old manually assembled UIs. Compiles are so much slower on my backup laptop :( |
c93df6c
to
326c75d
Compare
326c75d
to
3f84792
Compare
You can make the github CI spit out builds for your PR, too. Simply change the branch in |
3f84792
to
1d5b148
Compare
@Night-Pryanik conflicts are fixed. I tested most of it. I wasn't able to quickly come up with a test environment for the following:
|
Ok, thanks a lot! I'll see if I can find a time to test it soon. |
1d5b148
to
2a86972
Compare
2a86972
to
808091c
Compare
808091c
to
56d0896
Compare
Summary
None
Purpose of change
Functions like mvwputch change the color then change it back, so calling them repeatedly, especially in a loop, results in a massive amount of duplication of effort.
Describe the solution
Use the non-color-changing versions of the function and specify the color explicitly before and after the loops and other calls.
I've also replaced many such loops with
mvwvline
andmvwhline
, and added the newmvwrectf
for 2d fill loops.Describe alternatives you've considered
Testing
See comments for testing at various versions of the PR.
Additional context