mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Fixed crash when resizing a window to a zero-height/width size (#984)
This commit is contained in:
parent
3a12fc6505
commit
d4683692e0
@ -170,6 +170,17 @@ BOOL isValidTextUnicode(NSEvent* event);
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
-(void)update
|
||||
{
|
||||
// In order to prevent an infinite recursion when the window/view is
|
||||
// resized to zero-height/width, we ignore update event when resizing.
|
||||
if (![self inLiveResize]) {
|
||||
[super update];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
-(void)finishInit
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user