mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 04:39:34 +00:00
Correctly pass un-rotated width/height to presentation pipeline.
This commit is contained in:
parent
652612cf15
commit
88899984e3
@ -931,8 +931,7 @@ void PresentationCommon::CalculateRenderResolution(int *width, int *height, int
|
||||
bool firstIsUpscalingFilter = shaderInfo.empty() ? false : shaderInfo.front()->isUpscalingFilter;
|
||||
int firstSSAAFilterLevel = shaderInfo.empty() ? 0 : shaderInfo.front()->SSAAFilterLevel;
|
||||
|
||||
// Actually, auto mode should be more granular...
|
||||
// Round up to a zoom factor for the render size.
|
||||
// In auto mode (zoom == 0), round up to an integer zoom factor for the render size.
|
||||
int zoom = g_Config.iInternalResolution;
|
||||
if (zoom == 0 || firstSSAAFilterLevel >= 2) {
|
||||
// auto mode, use the longest dimension
|
||||
@ -963,10 +962,9 @@ void PresentationCommon::CalculateRenderResolution(int *width, int *height, int
|
||||
if (IsVREnabled()) {
|
||||
*width = 480 * zoom;
|
||||
*height = 480 * zoom;
|
||||
} else if (g_Config.IsPortrait()) {
|
||||
*width = 272 * zoom;
|
||||
*height = 480 * zoom;
|
||||
} else {
|
||||
// Note: We previously checked g_Config.IsPortrait (internal rotation) here but that was wrong -
|
||||
// we still render at 480x272 * zoom.
|
||||
*width = 480 * zoom;
|
||||
*height = 272 * zoom;
|
||||
}
|
||||
|
@ -82,6 +82,8 @@ public:
|
||||
pixelWidth_ = w;
|
||||
pixelHeight_ = h;
|
||||
}
|
||||
|
||||
// NOTE: Should be un-rotated width/height.
|
||||
void UpdateRenderSize(int rw, int rh) {
|
||||
renderWidth_ = rw;
|
||||
renderHeight_ = rh;
|
||||
|
Loading…
x
Reference in New Issue
Block a user