mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 19:33:39 +08:00
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>
This commit is contained in:
parent
38ec7b5357
commit
d50f71dc17
5
cocoa.m
5
cocoa.m
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user