From d50f71dc17b41205c33f8a45aa4850ad224dfc2c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andreas=20F=C3=A4rber?= Date: Sun, 13 Dec 2009 02:03:33 +0100 Subject: [PATCH] Cocoa: Mark the View as opaque MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Default is NO. Cf. http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaPerformance/Articles/CustomViews.html Based on patch by Juha Riihimäki. Signed-off-by: Andreas Färber Cc: Juha Riihimäki Cc: Alexander Graf Cc: Mike Kronenberg Signed-off-by: malc --- cocoa.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cocoa.m b/cocoa.m index 6f8b674118..dc9263a713 100644 --- a/cocoa.m +++ b/cocoa.m @@ -305,6 +305,11 @@ static int cocoa_keycode_to_qemu(int keycode) [super dealloc]; } +- (BOOL) isOpaque +{ + return YES; +} + - (void) drawRect:(NSRect) rect { COCOA_DEBUG("QemuCocoaView: drawRect\n"); -- 2.11.0