[aseprite] 227/250: Fix crash closing the window when it's on fullscreen mode on OS X
Tobias Hansen
thansen at moszumanska.debian.org
Sun Dec 20 15:27:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit 05249dc19133b27a483a1d363b11b9ebc57412d6
Author: David Capello <davidcapello at gmail.com>
Date: Tue Nov 3 16:14:05 2015 -0300
Fix crash closing the window when it's on fullscreen mode on OS X
---
src/allegro/src/macosx/system.m | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/allegro/src/macosx/system.m b/src/allegro/src/macosx/system.m
index df50d2a..f2c41d2 100644
--- a/src/allegro/src/macosx/system.m
+++ b/src/allegro/src/macosx/system.m
@@ -198,11 +198,15 @@ void osx_event_handler()
int event_type;
BOOL gotmouseevent = NO;
- while ((event = [NSApp nextEventMatchingMask: NSAnyEventMask
- untilDate: [NSDate distantPast]
- inMode: NSDefaultRunLoopMode
- dequeue: YES]))
+ while (osx_window != nil)
{
+ event = [NSApp nextEventMatchingMask: NSAnyEventMask
+ untilDate: [NSDate distantPast]
+ inMode: NSDefaultRunLoopMode
+ dequeue: YES];
+ if (!event)
+ return;
+
BOOL send_event = YES;
_unix_lock_mutex(osx_skip_events_processing_mutex);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list