From 5c3ae656a092d49ff5dd142d6e566c1b429c9d0e Mon Sep 17 00:00:00 2001 From: Sam H Date: Mon, 18 Apr 2022 02:16:30 +1200 Subject: [PATCH] GS: fix display width calculation for frame when offsets off --- pcsx2/GS/GSState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/GS/GSState.cpp b/pcsx2/GS/GSState.cpp index ab32f3597b..ec75481986 100644 --- a/pcsx2/GS/GSState.cpp +++ b/pcsx2/GS/GSState.cpp @@ -497,7 +497,7 @@ GSVector2i GSState::GetResolution() // Some games (Mortal Kombat Armageddon) render the image at 834 pixels then shrink it to 624 pixels // which does fit, but when we ignore offsets we go on framebuffer size and some other games // such as Johnny Mosleys Mad Trix and Transformers render too much but design it to go off the screen. - int magnified_width = VideoModeDividers[(int)videomode - 1].z / GetDisplayHMagnification(); + int magnified_width = (VideoModeDividers[static_cast(videomode) - 1].z + 1) / GetDisplayHMagnification(); GSVector4i total_rect = GetDisplayRect(0).runion(GetDisplayRect(1)); total_rect.z = total_rect.z - total_rect.x;