mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
cocoa: Make sure wait for button enable can't be infinite.
This commit is contained in:
parent
723165187f
commit
094655cff9
@ -876,7 +876,7 @@ SetWindowStyle(SDL_Window * window, NSUInteger style)
|
||||
button = [nswindow standardWindowButton:NSWindowMiniaturizeButton];
|
||||
if (button) {
|
||||
int iterations = 0;
|
||||
while (![button isEnabled]) {
|
||||
while (![button isEnabled] && (iterations < 100)) {
|
||||
SDL_Delay(10);
|
||||
SDL_PumpEvents();
|
||||
iterations++;
|
||||
|
Loading…
Reference in New Issue
Block a user