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: Ken Thomases <ken@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1b04429965
commit
041f59350c
|
@ -2456,6 +2456,20 @@ - (void) displayIfNeeded
|
|||
[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)
|
||||
|
|
Loading…
Reference in New Issue