This reverts commit cad2a7c8e1ad97eaf8bbb7479f8c5ad8dca8a10d.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52354 Signed-off-by: Tim Clem tclem@codeweavers.com --- dlls/winemac.drv/cocoa_window.m | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m index ba7eaf2ad78..2014027d2cc 100644 --- a/dlls/winemac.drv/cocoa_window.m +++ b/dlls/winemac.drv/cocoa_window.m @@ -491,9 +491,9 @@ - (BOOL) isFlipped return YES; }
- - (void) viewWillDraw + - (void) drawRect:(NSRect)rect { - [super viewWillDraw]; + WineWindow* window = (WineWindow*)[self window];
for (WineOpenGLContext* context in pendingGlContexts) { @@ -506,11 +506,6 @@ - (void) viewWillDraw } [glContexts addObjectsFromArray:pendingGlContexts]; [pendingGlContexts removeAllObjects]; - } - - - (void) drawRect:(NSRect)rect - { - WineWindow* window = (WineWindow*)[self window];
if ([window contentView] != self) return;