mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 19:18:23 +00:00
Cocoa: Use optimized drawing for the window
Default is NO. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
1
cocoa.m
1
cocoa.m
@@ -740,6 +740,7 @@ static int cocoa_keycode_to_qemu(int keycode)
|
|||||||
[normalWindow setAcceptsMouseMovedEvents:YES];
|
[normalWindow setAcceptsMouseMovedEvents:YES];
|
||||||
[normalWindow setTitle:[NSString stringWithFormat:@"QEMU"]];
|
[normalWindow setTitle:[NSString stringWithFormat:@"QEMU"]];
|
||||||
[normalWindow setContentView:cocoaView];
|
[normalWindow setContentView:cocoaView];
|
||||||
|
[normalWindow useOptimizedDrawing:YES];
|
||||||
[normalWindow makeKeyAndOrderFront:self];
|
[normalWindow makeKeyAndOrderFront:self];
|
||||||
[normalWindow center];
|
[normalWindow center];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user