Removed some debug prints.

This commit is contained in:
Yuval Dolev 2020-01-15 02:21:02 +02:00
parent 93494bd398
commit ab486eb229
2 changed files with 2 additions and 24 deletions

View File

@ -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

View File

@ -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
}
}