aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Färber <andreas.faerber@web.de>2009-12-13 02:03:33 +0100
committermalc <av1474@comtv.ru>2010-01-07 10:57:33 +0300
commitd50f71dc17b41205c33f8a45aa4850ad224dfc2c (patch)
treedb9bc9209c0a52b5d27fbdea1681739746c67171
parent38ec7b53578a4f95c37f92a1840fc25a01c9b4e7 (diff)
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 <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> Signed-off-by: malc <av1474@comtv.ru>
-rw-r--r--cocoa.m5
1 files changed, 5 insertions, 0 deletions
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");