diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2021-03-22 16:25:02 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-03-22 16:25:02 +0000 |
commit | e0003bc032ce5cf6a886675f288e6cd8b9da9849 (patch) | |
tree | aa0718f58bec84007f254db9de8714411b8e585b | |
parent | b184750926812cb78ac0caf4c4b2b13683b5bde3 (diff) | |
download | qemu-arm-e0003bc032ce5cf6a886675f288e6cd8b9da9849.tar.gz |
debug junk
-rw-r--r-- | ui/cocoa.m | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/ui/cocoa.m b/ui/cocoa.m index 37e1fb52eb..c0fdbcccf8 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -59,7 +59,7 @@ #define NSControlStateValueOff NSOffState #endif -//#define DEBUG +#define DEBUG #ifdef DEBUG #define COCOA_DEBUG(...) { (void) fprintf (stdout, __VA_ARGS__); } @@ -422,7 +422,7 @@ QemuCocoaView *cocoaView; - (void) drawRect:(NSRect) rect { - COCOA_DEBUG("QemuCocoaView: drawRect\n"); +// COCOA_DEBUG("QemuCocoaView: drawRect\n"); // get CoreGraphic context CGContextRef viewContextRef = [[NSGraphicsContext currentContext] CGContext]; @@ -1138,6 +1138,26 @@ QemuCocoaView *cocoaView; [super dealloc]; } +- (void)applicationDidResignActive: (NSNotification *) note +{ + COCOA_DEBUG("DidResignActive\n"); +} + +- (void)applicationWillBecomeActive: (NSNotification *) note +{ + COCOA_DEBUG("WillBecomeActive\n"); +} + +- (void)applicationDidBecomeActive: (NSNotification *) note +{ + COCOA_DEBUG("DidBecomeActive\n"); +} + +- (void)applicationWillFinishLaunching: (NSNotification *) note +{ + COCOA_DEBUG("WillFinishLaunching\n"); +} + - (void)applicationDidFinishLaunching: (NSNotification *) note { COCOA_DEBUG("QemuCocoaAppController: applicationDidFinishLaunching\n"); @@ -1809,7 +1829,7 @@ static void cocoa_update(DisplayChangeListener *dcl, { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; - COCOA_DEBUG("qemu_cocoa: cocoa_update\n"); +// COCOA_DEBUG("qemu_cocoa: cocoa_update\n"); dispatch_async(dispatch_get_main_queue(), ^{ NSRect rect; @@ -1852,7 +1872,7 @@ static void cocoa_refresh(DisplayChangeListener *dcl) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; - COCOA_DEBUG("qemu_cocoa: cocoa_refresh\n"); +// COCOA_DEBUG("qemu_cocoa: cocoa_refresh\n"); graphic_hw_update(NULL); if (qemu_input_is_absolute()) { |