Patchwork [06/11] Cocoa: Mark the View as opaque

login
register
mail settings
Submitter Andreas Färber
Date Dec. 13, 2009, 2:55 a.m.
Message ID <1260672941-9365-7-git-send-email-andreas.faerber@web.de>
Download mbox | patch
Permalink /patch/41010/
State New
Headers show

Comments

Andreas Färber - Dec. 13, 2009, 2:55 a.m.
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 <andreas.faerber@web.de>
Cc: Juha Riihimäki <juha.riihimaki@nokia.com>
Cc: Alexander Graf <alex@csgraf.de>
Cc: Mike Kronenberg <mike.kronenberg@kronenberg.org>
---
 cocoa.m |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch

diff --git a/cocoa.m b/cocoa.m
index 6f8b674..dc9263a 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");