From 8592597e93d53e700360ce725be9bf709b7c7dc0 Mon Sep 17 00:00:00 2001 From: ScriptedSnark <51358194+ScriptedSnark@users.noreply.github.com> Date: Fri, 15 Nov 2024 17:49:55 +0500 Subject: [PATCH] Fix FBO issues in ""It's easier to aim", they said" effect --- GSChaos/CFeatureWideScreen.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GSChaos/CFeatureWideScreen.cpp b/GSChaos/CFeatureWideScreen.cpp index a004acd2..f076964c 100644 --- a/GSChaos/CFeatureWideScreen.cpp +++ b/GSChaos/CFeatureWideScreen.cpp @@ -36,8 +36,8 @@ bool CFeatureWideScreen::UseCustomDuration() void CFeatureWideScreen::SwapBuffers() { - int width = ImGui::GetIO().DisplaySize.x; - int height = ImGui::GetIO().DisplaySize.y; + int width = gImGui.m_vecRealDisplaySize.x; + int height = gImGui.m_vecRealDisplaySize.y; glBlendFunc(GL_SRC_ALPHA, GL_ZERO); glEnable(GL_BLEND); @@ -64,6 +64,8 @@ void CFeatureWideScreen::SwapBuffers() glColor4f(1, 1, 1, 1); + glViewport(0, 0, gImGui.m_vecRealDisplaySize.x, gImGui.m_vecRealDisplaySize.y); + glBegin(GL_QUADS); glTexCoord2f(0, 0); glVertex3f(-1, 1, -1);