Skip to content

Commit

Permalink
fix: possibly fixing display 2 on some machines
Browse files Browse the repository at this point in the history
  • Loading branch information
tillt committed Nov 26, 2023
1 parent e4aba53 commit d08425b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions KompleteSynthesia/VideoController.m
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ - (BOOL)reset:(NSError**)error
CGImageRef cgi = [image CGImageForProposedRect:NULL context:NULL hints:NULL];
[self drawCGImage:cgi screen:1 x:0 y:0 error:nil];

// Assure extreme delay after sending data to screen 2 to make sure the first screen transfer does not interfere.
[NSThread sleepForTimeInterval:0.05f];

dispatch_async(dispatch_get_main_queue(), ^{
[self startMirroring];
});
Expand Down

0 comments on commit d08425b

Please sign in to comment.