fix iOS pencil force clamp

This commit is contained in:
2019-11-16 23:26:40 +01:00
parent cdd5f1a7ae
commit 983f4fd7f7
2 changed files with 10 additions and 14 deletions

View File

@@ -473,7 +473,7 @@ void App::init()
uirtt.create(width, height, -1, GL_RGBA8, true);
if (Settings::value_or<Serializer::Boolean>("auto-timelapse", false))
if (Settings::value_or<Serializer::Boolean>("auto-timelapse", true))
rec_start();
if (!check_license())
@@ -756,18 +756,8 @@ void App::rec_start()
{
if (!rec_running)
{
#if defined(__IOS__) || defined(__OSX__)
NSString* path = [NSString stringWithUTF8String:rec_path.c_str()];
NSArray *dirFiles = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:path error:nil];
NSArray *jpgFiles = [dirFiles filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"self ENDSWITH '.jpg'"]];
rec_count = (int)[jpgFiles count];
update_rec_frames();
rec_thread = std::thread(&App::rec_loop, this);
#else
rec_count = Asset::list_files(rec_path, ".*\\.jpg").size();
update_rec_frames();
rec_thread = std::thread(&App::rec_loop, this);
#endif
}
}