winemac: Tell Cocoa to preserve our window content during live resizing.

This commit is contained in:
Ken Thomases 2013-04-04 14:26:01 -05:00 committed by Alexandre Julliard
parent f50e649578
commit 26a74c664d
1 changed files with 12 additions and 0 deletions

View File

@ -277,6 +277,18 @@ - (BOOL) acceptsFirstMouse:(NSEvent*)theEvent
return YES;
}
- (BOOL) preservesContentDuringLiveResize
{
// Returning YES from this tells Cocoa to keep our view's content during
// a Cocoa-driven resize. In theory, we're also supposed to override
// -setFrameSize: to mark exposed sections as needing redisplay, but
// user32 will take care of that in a roundabout way. This way, we don't
// redraw until the window surface is flushed.
//
// This doesn't do anything when we resize the window ourselves.
return YES;
}
@end