Fix macOS resize bug

There is a commit up for the macOS resize bug where we get rid of a
previous fix entiry and just resize, but kimci86 stated that he found
better behavior with this solution. I'm going to put up this for code
review and we can compare it to https://github.com/SFML/SFML/pull/2538
and see which we like best
This commit is contained in:
Shane Whitmire 2023-07-15 08:57:06 -05:00 committed by Chris Thrasher
parent 429bde6648
commit 86285c5378

View File

@ -483,6 +483,11 @@
if (m_requester != 0)
m_requester->windowResized(width, height - static_cast<unsigned int>([self titlebarHeight]));
}
else if (width != [self size].width || height != [self size].height + static_cast<CGFloat>([self titlebarHeight]))
{
if (m_requester != 0)
m_requester->windowResized(width, height - static_cast<unsigned int>([self titlebarHeight]));
}
NSRect frame = NSMakeRect([m_window frame].origin.x,
[m_window frame].origin.y,