Skip to content

Commit

Permalink
fix: 修复分辨率处理的引用错误
Browse files Browse the repository at this point in the history
fix #250
  • Loading branch information
MistEO committed Jun 12, 2024
1 parent e1b035d commit f098c67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/MaaAdbControlUnit/General/DeviceInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ std::optional<std::pair<int, int>> DeviceInfo::request_resolution()
switch (orientation) {
case 0:
case 2:
std::tie(width, height) = std::minmax(width, height);
std::tie(width, height) = std::minmax({ width, height });
LogInfo << "portrait" << VAR(orientation) << VAR(width) << VAR(height);
break;
case 1:
case 3:
std::tie(height, width) = std::minmax(width, height);
std::tie(height, width) = std::minmax({ width, height });
LogInfo << "landscape" << VAR(orientation) << VAR(width) << VAR(height);
break;
default:
Expand Down

0 comments on commit f098c67

Please sign in to comment.