diff options
author | Andreas Färber <andreas.faerber@web.de> | 2009-12-13 02:03:33 +0100 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2010-01-07 10:57:33 +0300 |
commit | d50f71dc17b41205c33f8a45aa4850ad224dfc2c (patch) | |
tree | db9bc9209c0a52b5d27fbdea1681739746c67171 | |
parent | 38ec7b53578a4f95c37f92a1840fc25a01c9b4e7 (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.m | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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"); |