Skip to content

Commit

Permalink
[NSView setNeedsDisplayInRect:] must be run in the main thread as of …
Browse files Browse the repository at this point in the history
…10.13
  • Loading branch information
ksherlock committed Nov 30, 2017
1 parent bcadf05 commit ea62737
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Views/EmulatorView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -690,17 +690,15 @@ -(void)invalidateIRect: (iRect)updateRect
rect.origin.x += _paddingLeft;
rect.origin.y += _paddingTop;

/*
dispatch_async(dispatch_get_main_queue(), ^(){

[self setNeedsDisplayInRect: rect];

//[self display];

});
*/

[self setNeedsDisplayInRect: rect];
//[self setNeedsDisplayInRect: rect];
//[self display];


Expand Down

0 comments on commit ea62737

Please sign in to comment.