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>
master
Andreas Färber 2009-12-13 02:03:33 +01:00 committed by malc
parent 38ec7b5357
commit d50f71dc17
1 changed files with 5 additions and 0 deletions

View File

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