Removed some debug prints.
							parent
							
								
									93494bd398
								
							
						
					
					
						commit
						ab486eb229
					
				|  | @ -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" | 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" | "$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 "$CODE_HOME/metadata_generator" | ||||||
| rm $preproc_file | rm $preproc_file | ||||||
|  |  | ||||||
|  | @ -624,8 +624,7 @@ mac_toggle_fullscreen(void){ | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| - (void)viewDidChangeBackingProperties{ | - (void)viewDidChangeBackingProperties{ | ||||||
|     // TODO(yuval): Screen scale factor calculation |     // TODO(yuval): If the screen scale factor changed, modify the current face to use the new screen scale factor. | ||||||
|     printf("Backing changed!\n"); |  | ||||||
|     mac_resize(mac_vars.window); |     mac_resize(mac_vars.window); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -722,7 +721,6 @@ mac_toggle_fullscreen(void){ | ||||||
|         // NOTE(yuval): Quit the app if requested by the application core |         // NOTE(yuval): Quit the app if requested by the application core | ||||||
|         MacProfileScope("Perform Kill"){ |         MacProfileScope("Perform Kill"){ | ||||||
|             if (result.perform_kill){ |             if (result.perform_kill){ | ||||||
|                 printf("Terminating 4coder!\n"); |  | ||||||
|                 [NSApp terminate:nil]; |                 [NSApp terminate:nil]; | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  | @ -993,7 +991,6 @@ mac_toggle_fullscreen(void){ | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| - (void)request_display{ | - (void)request_display{ | ||||||
|     //printf("Display Requested!\n"); |  | ||||||
|     CGRect cg_rect = CGRectMake(0, 0, mac_vars.width, mac_vars.height); |     CGRect cg_rect = CGRectMake(0, 0, mac_vars.width, mac_vars.height); | ||||||
|     NSRect rect = NSRectFromCGRect(cg_rect); |     NSRect rect = NSRectFromCGRect(cg_rect); | ||||||
|     [self setNeedsDisplayInRect:rect]; |     [self setNeedsDisplayInRect:rect]; | ||||||
|  | @ -1358,25 +1355,6 @@ main(int arg_count, char **args){ | ||||||
|         mac_vars.timer_start = system_now_time(); |         mac_vars.timer_start = system_now_time(); | ||||||
|          |          | ||||||
|         // NOTE(yuval): Start the app's run loop |         // NOTE(yuval): Start the app's run loop | ||||||
| #if 1 |  | ||||||
|         printf("Running using NSApp run\n"); |  | ||||||
|         [NSApp run]; |         [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 |  | ||||||
|     } |     } | ||||||
| } | } | ||||||
		Loading…
	
		Reference in New Issue
	
	 Yuval Dolev
						Yuval Dolev