Skip to content

Commit

Permalink
fix: 为minitouch系列输入方法增加display info检查
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Dec 20, 2024
1 parent b0a2523 commit f1c64a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/MaaAdbControlUnit/Input/MtouchHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ bool MtouchHelper::read_info()
return false;
}

request_display_info();
if (!request_display_info()) {
LogWarn << "failed to request display info";
return false;
}

bool landscape = display_width_ > display_height_;
touch_width_ = landscape ? std::max(x, y) : std::min(x, y);
Expand Down

0 comments on commit f1c64a1

Please sign in to comment.