This commit is contained in:
twinaphex 2019-08-12 19:33:50 +02:00
parent 7c78e0ad1e
commit 3ae447420e
2 changed files with 6 additions and 7 deletions

View File

@ -40,10 +40,8 @@ using namespace std;
static void get_include_file(
const char *line, char *include_file, size_t len)
{
char *start = NULL;
char *end = NULL;
start = (char*)strchr(line, '\"');
char *start = (char*)strchr(line, '\"');
if (!start)
return;

View File

@ -19527,12 +19527,13 @@ void driver_set_nonblock_state(void)
/* Only apply non-block-state for video if we're using vsync. */
if (video_driver_active && video_driver_get_ptr_internal(false))
{
bool video_nonblock = enable;
if (!settings->bools.video_vsync || runloop_force_nonblock)
video_nonblock = true;
if (current_video->set_nonblock_state)
{
bool video_nonblock = enable;
if (!settings->bools.video_vsync || runloop_force_nonblock)
video_nonblock = true;
current_video->set_nonblock_state(video_driver_data, video_nonblock);
}
}
if (audio_driver_active && audio_driver_context_audio_data)