Skip to content

Commit

Permalink
fix: 分辨率写反了
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Jun 12, 2024
1 parent c6648c1 commit 85083de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/MaaAdbControlUnit/General/DeviceInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ std::optional<std::pair<int, int>> DeviceInfo::request_resolution()
switch (orientation) {
case 0:
case 2:
std::tie(width, height) = std::minmax({ width, height });
LogInfo << "portrait" << VAR(orientation) << VAR(width) << VAR(height);
std::tie(height, width) = std::minmax({ width, height });
LogInfo << "landscape" << VAR(orientation) << VAR(width) << VAR(height);
break;
case 1:
case 3:
std::tie(height, width) = std::minmax({ width, height });
LogInfo << "landscape" << VAR(orientation) << VAR(width) << VAR(height);
std::tie(width, height) = std::minmax({ width, height });
LogInfo << "portrait" << VAR(orientation) << VAR(width) << VAR(height);
break;
default:
LogWarn << "unknown" << VAR(orientation) << VAR(width) << VAR(height);
Expand Down

0 comments on commit 85083de

Please sign in to comment.