Skip to content
Permalink
Browse files

Mac: Fix a crash when SDL is compiled with SDL_MAC_NO_SANDBOX enabled…

…, by increasing the stack size of the mouse tap thread back to OS X' default of 512 KB.
  • Loading branch information
slime73 committed May 21, 2016
1 parent 4a46873 commit 0a4085a048ab896ea834bc72090b0545dd1c7fda

File 2 of 3 in 0a4085a

@@ -94,7 +94,7 @@ - (NSRange)selectedRange

- (void)setMarkedText:(id)aString selectedRange:(NSRange)selectedRange replacementRange:(NSRange)replacementRange;
{
if ([aString isKindOfClass: [NSAttributedString class]]) {
if ([aString isKindOfClass:[NSAttributedString class]]) {
aString = [aString string];
}

@@ -142,10 +142,10 @@ - (NSRect)firstRectForCharacterRange:(NSRange)aRange actualRange:(NSRangePointer
aRange.location, aRange.length, windowHeight,
NSStringFromRect(rect));

if ([[self window] respondsToSelector:@selector(convertRectToScreen:)]) {
rect = [[self window] convertRectToScreen:rect];
if ([window respondsToSelector:@selector(convertRectToScreen:)]) {
rect = [window convertRectToScreen:rect];
} else {
rect.origin = [[self window] convertBaseToScreen:rect.origin];
rect.origin = [window convertBaseToScreen:rect.origin];
}

return rect;

0 comments on commit 0a4085a

Please sign in to comment.