From 4fa6c7fd7f6b9d08adac7422cc2522410554e8ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 1 Jun 2020 16:19:17 +0200 Subject: [PATCH] Typo fix. Will hopefully help #12992. --- GPU/Common/PresentationCommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/Common/PresentationCommon.cpp b/GPU/Common/PresentationCommon.cpp index 871322073e..8e04dafe43 100644 --- a/GPU/Common/PresentationCommon.cpp +++ b/GPU/Common/PresentationCommon.cpp @@ -100,7 +100,7 @@ void CenterDisplayOutputRect(FRect *rc, float origW, float origH, const FRect &f float pixelCrop = frame.h / 270.0f; float resCommonWidescreen = pixelCrop - floor(pixelCrop); if (!rotated && resCommonWidescreen == 0.0f && frame.w >= pixelCrop * 480.0f) { - rc->x = floorf((frame.h - pixelCrop * 480.0f) * 0.5f); + rc->x = floorf((frame.w - pixelCrop * 480.0f) * 0.5f); rc->y = floorf(-pixelCrop); rc->w = floorf(pixelCrop * 480.0f); rc->h = floorf(pixelCrop * 272.0f);