diff --git a/source/MaaAdbControlUnit/Input/MtouchHelper.cpp b/source/MaaAdbControlUnit/Input/MtouchHelper.cpp index 9f1c46ef6..2d52fe0e8 100644 --- a/source/MaaAdbControlUnit/Input/MtouchHelper.cpp +++ b/source/MaaAdbControlUnit/Input/MtouchHelper.cpp @@ -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);