comparison debug.c @ 2305:6aca1734d573

Merge
author Michael Pavone <pavone@retrodev.com>
date Wed, 15 Mar 2023 19:28:11 -0700
parents 0343f0d5add0
children 344c6a3fe8a8
comparison
equal deleted inserted replaced
2304:b3832f73444f 2305:6aca1734d573
1053 FD_ZERO(&read_fds); 1053 FD_ZERO(&read_fds);
1054 struct timeval timeout; 1054 struct timeval timeout;
1055 #endif 1055 #endif
1056 do { 1056 do {
1057 process_events(); 1057 process_events();
1058 #ifndef IS_LIB
1058 render_update_display(); 1059 render_update_display();
1060 #endif
1059 #ifndef _WIN32 1061 #ifndef _WIN32
1060 timeout.tv_sec = 0; 1062 timeout.tv_sec = 0;
1061 timeout.tv_usec = 16667; 1063 timeout.tv_usec = 16667;
1062 FD_SET(fileno(stdin), &read_fds); 1064 FD_SET(fileno(stdin), &read_fds);
1063 if(select(fileno(stdin) + 1, &read_fds, NULL, NULL, &timeout) >= 1) { 1065 if(select(fileno(stdin) + 1, &read_fds, NULL, NULL, &timeout) >= 1) {