Commit 041f5935 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Reenable window autodisplay when the frame is set and redisplayed.

Cocoa will draw the window frame immediately but if autodisplay of its content view is disabled, that may leave the content area black briefly. This change avoids that flicker. Signed-off-by: 's avatarKen Thomases <ken@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 1b044299
......@@ -2456,6 +2456,20 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
[self setAutodisplay:NO];
}
- (void) setFrame:(NSRect)frameRect display:(BOOL)flag
{
if (flag)
[self setAutodisplay:YES];
[super setFrame:frameRect display:flag];
}
- (void) setFrame:(NSRect)frameRect display:(BOOL)displayFlag animate:(BOOL)animateFlag
{
if (displayFlag)
[self setAutodisplay:YES];
[super setFrame:frameRect display:displayFlag animate:animateFlag];
}
- (void) windowDidDrawContent
{
if (!drawnSinceShown)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment