From: Andreas Färber Date: Sun, 13 Dec 2009 01:03:33 +0000 (+0100) Subject: Cocoa: Mark the View as opaque X-Git-Tag: v0.13.0-rc0~1793 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d50f71dc17b41205c33f8a45aa4850ad224dfc2c;p=thirdparty%2Fqemu.git Cocoa: Mark the View as opaque 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 --- diff --git a/cocoa.m b/cocoa.m index 6f8b674118c..dc9263a713e 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");