style: fix clang

This commit is contained in:
Constrat
2025-06-09 23:17:48 +02:00
parent 673b1b082f
commit d96143eab2
2 changed files with 12 additions and 11 deletions

View File

@@ -575,16 +575,16 @@ struct TaskInfo : public TaskPipelineInfo
bool sub_error_ignored = false; // 子任务如果失败了,是否继续执行剩下的任务
int max_times = INT_MAX; // 任务最多执行多少次
Rect specific_rect; // 指定区域目前仅针对ClickRect任务有用会点这个区域
bool high_resolution_swipe_fix = false; // 是否启用高分辨率滑动修正,仅对 ProcessTask 生效(其实只有关卡的滑动用上了
int pre_delay = 0; // 执行该任务前的延时
int post_delay = 0; // 执行该任务后的延时
int retry_times = INT_MAX; // 未找到图像时的重试次数
Rect roi; // 要识别的区域若为0则全图识别
Rect rect_move; // 识别结果移动:有些结果识别到的,和要点击的不是同一个位置。
// 即识别到了res点击res + result_move的位置
bool cache = false; // 是否使用缓存区域
std::vector<int> special_params; // 某些任务会用到的特殊参数
std::string input_text; // 输入任务的文字,目前希望仅针对 Input 任务有效, algorithm 为 JustReturn
bool high_resolution_swipe_fix = false; // 是否启用高分辨率滑动修正,仅对 ProcessTask 生效(其实只有关卡的滑动用上了
int pre_delay = 0; // 执行该任务前的延时
int post_delay = 0; // 执行该任务后的延时
int retry_times = INT_MAX; // 未找到图像时的重试次数
Rect roi; // 要识别的区域若为0则全图识别
Rect rect_move; // 识别结果移动:有些结果识别到的,和要点击的不是同一个位置。
// 即识别到了res点击res + result_move的位置
bool cache = false; // 是否使用缓存区域
std::vector<int> special_params; // 某些任务会用到的特殊参数
std::string input_text; // 输入任务的文字,目前希望仅针对 Input 任务有效, algorithm 为 JustReturn
};
using TaskPtr = std::shared_ptr<TaskInfo>;

View File

@@ -203,7 +203,8 @@ bool asst::Controller::swipe(
bool high_resolution_swipe_fix)
{
CHECK_EXIST(m_controller, false);
return m_scale_proxy->swipe(r1, r2, duration, extra_swipe, slope_in, slope_out, with_pause, high_resolution_swipe_fix);
return m_scale_proxy
->swipe(r1, r2, duration, extra_swipe, slope_in, slope_out, with_pause, high_resolution_swipe_fix);
}
bool asst::Controller::inject_input_event(InputEvent& event)