winemac: Tell Cocoa to preserve our window content during live resizing.
This commit is contained in:
parent
f50e649578
commit
26a74c664d
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue