From: Andreas Färber Date: Sun, 13 Dec 2009 01:03:33 +0000 (+0100) Subject: Cocoa: Mark the View as opaque X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d50f71dc17b41205c33f8a45aa4850ad224dfc2c;p=qemu.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 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");