-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Replace GetDefaultBrushColors with hardcoded default attributes #11982
Conversation
@msftbot make sure @miniksa signs off |
Hello @DHowett! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. Nice catch, @j4james. Thank you!
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
🎉 Handy links: |
The
IRenderData::GetDefaultBrushColors
method was intended to returnthe default attributes from which the renderer would calculate the
default background color. It should always have been returning a default
TextAttribute
object, but the conhostRenderData
implementation wasmistakenly returning the active attributes instead. This resulted in
margin areas being filled with the wrong color. To correct that, this PR
simply replaces all usage of
GetDefaultBrushColors
with hardcodeddefault attributes.
Validation Steps Performed
I've manually checked the test case described in issue #11976 and
confirmed that the conhost margin areas are now correctly filled with
the default background color.
Closes #11976