qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 RESEND 06/11] Cocoa: Mark the View as opaque


From: Andreas Färber
Subject: [Qemu-devel] [PATCH v2 RESEND 06/11] Cocoa: Mark the View as opaque
Date: Wed, 6 Jan 2010 23:47:12 +0100

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 <address@hidden>
Cc: Juha Riihimäki <address@hidden>
Cc: Alexander Graf <address@hidden>
Cc: Mike Kronenberg <address@hidden>
---
 cocoa.m |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

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");
-- 
1.6.5.3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]