提交 d50f71dc 编写于 作者: A Andreas Färber 提交者: malc

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: NAndreas 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: Nmalc <av1474@comtv.ru>
上级 38ec7b53
...@@ -305,6 +305,11 @@ static int cocoa_keycode_to_qemu(int keycode) ...@@ -305,6 +305,11 @@ static int cocoa_keycode_to_qemu(int keycode)
[super dealloc]; [super dealloc];
} }
- (BOOL) isOpaque
{
return YES;
}
- (void) drawRect:(NSRect) rect - (void) drawRect:(NSRect) rect
{ {
COCOA_DEBUG("QemuCocoaView: drawRect\n"); COCOA_DEBUG("QemuCocoaView: drawRect\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册