From ab486eb22947ea3566db8bee94897aa9951f2e12 Mon Sep 17 00:00:00 2001 From: Yuval Dolev Date: Wed, 15 Jan 2020 02:21:02 +0200 Subject: [PATCH] Removed some debug prints. --- custom/bin/buildsuper_x64-mac.sh | 2 +- platform_mac/mac_4ed.mm | 24 +----------------------- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/custom/bin/buildsuper_x64-mac.sh b/custom/bin/buildsuper_x64-mac.sh index 9f6bce10..ff3699a8 100755 --- a/custom/bin/buildsuper_x64-mac.sh +++ b/custom/bin/buildsuper_x64-mac.sh @@ -24,7 +24,7 @@ clang++ -I"$CODE_HOME" $meta_macros $arch $opts $debug -std=gnu++0x "$SOURCE" -E clang++ -I"$CODE_HOME" $opts $debug -std=gnu++0x "$CODE_HOME/4coder_metadata_generator.cpp" -o "$CODE_HOME/metadata_generator" "$CODE_HOME/metadata_generator" -R "$CODE_HOME" "$PWD/$preproc_file" -clang++ -I"$CODE_HOME" $arch $opts $debug -std=gnu++0x "$SOURCE" -shared -o custom_4coder.so -fPIC +clang++ -I"$CODE_HOME" $arch $opts $debug -std=c++11 "$SOURCE" -shared -o custom_4coder.so -fPIC rm "$CODE_HOME/metadata_generator" rm $preproc_file diff --git a/platform_mac/mac_4ed.mm b/platform_mac/mac_4ed.mm index 2318c698..228d87bc 100644 --- a/platform_mac/mac_4ed.mm +++ b/platform_mac/mac_4ed.mm @@ -624,8 +624,7 @@ mac_toggle_fullscreen(void){ } - (void)viewDidChangeBackingProperties{ - // TODO(yuval): Screen scale factor calculation - printf("Backing changed!\n"); + // TODO(yuval): If the screen scale factor changed, modify the current face to use the new screen scale factor. mac_resize(mac_vars.window); } @@ -722,7 +721,6 @@ mac_toggle_fullscreen(void){ // NOTE(yuval): Quit the app if requested by the application core MacProfileScope("Perform Kill"){ if (result.perform_kill){ - printf("Terminating 4coder!\n"); [NSApp terminate:nil]; } } @@ -993,7 +991,6 @@ mac_toggle_fullscreen(void){ } - (void)request_display{ - //printf("Display Requested!\n"); CGRect cg_rect = CGRectMake(0, 0, mac_vars.width, mac_vars.height); NSRect rect = NSRectFromCGRect(cg_rect); [self setNeedsDisplayInRect:rect]; @@ -1358,25 +1355,6 @@ main(int arg_count, char **args){ mac_vars.timer_start = system_now_time(); // NOTE(yuval): Start the app's run loop -#if 1 - printf("Running using NSApp run\n"); [NSApp run]; -#else - printf("Running using manual event loop\n"); - - for (;;) { - u64 count = 0; - - NSEvent* event; - do { - event = [NSApp nextEventMatchingMask:NSEventMaskAny - untilDate:[NSDate distantFuture] - inMode:NSDefaultRunLoopMode - dequeue:YES]; - - [NSApp sendEvent:event]; - } while (event != nil); - } -#endif } } \ No newline at end of file