Skip to content

Commit

Permalink
Fix portrait mode integer scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Apr 2, 2023
1 parent d223d3c commit c08c711
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion GPU/Common/PresentationCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ void CalculateDisplayOutputRect(FRect *rc, float origW, float origH, const FRect
}

if (g_Config.bDisplayIntegerScale) {
outW = std::max(1.0f, floorf(outW / 480.0f)) * 480.0f;
float wDim = 480.0f;
if (rotated) {
wDim = 272.0f;
}
outW = std::max(1.0f, floorf(outW / wDim)) * wDim;
outH = outW / origRatio;
}

Expand Down

0 comments on commit c08c711

Please sign in to comment.