mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
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:
parent
429bde6648
commit
86285c5378
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user