-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Clean up til::point/size/rect member usage #14458
Conversation
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.
Looks good to me. Thanks!
const auto requestedBufferSize = data.dwSize; | ||
if (requestedBufferSize.X != coordScreenBufferSize.X || | ||
requestedBufferSize.Y != coordScreenBufferSize.Y) | ||
const auto requestedBufferSize = til::wrap_coord_size(data.dwSize); | ||
if (requestedBufferSize != coordScreenBufferSize) | ||
{ | ||
auto& commandLine = CommandLine::Instance(); | ||
|
||
commandLine.Hide(FALSE); | ||
|
||
LOG_IF_FAILED(context.ResizeScreenBuffer(til::wrap_coord_size(data.dwSize), TRUE)); | ||
LOG_IF_FAILED(context.ResizeScreenBuffer(requestedBufferSize, TRUE)); |
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.
Note to other reviewers: aside from removing the union in til::point/rect/size, this is the only other change I found that isn't just renaming.
Hello @lhecker! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
This is a follow-up of #13025 to make the members of
til::point/size/rect
uniform and consistent without the use of
unions
. The only file that hasany changes is
src/host/getset.cpp
where an if condition was simplified.Validation Steps Performed