use_thread option for screenshot was backwards

This commit is contained in:
Brad Parker 2018-08-27 13:38:37 -04:00
parent ea87bb5a1d
commit 23836bfba9

View File

@ -260,14 +260,14 @@ static bool screenshot_dump(
task->handler = task_screenshot_handler;
if (use_thread)
return screenshot_dump_direct(state);
else
{
if (!savestate)
task->title = strdup(msg_hash_to_str(MSG_TAKING_SCREENSHOT));
task->title = strdup(msg_hash_to_str(MSG_TAKING_SCREENSHOT));
task_queue_push(task);
}
else
return screenshot_dump_direct(state);
return true;
}