summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Present.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2023-02-18 12:58:25 -0800
committerPokechu22 <Pokechu022@gmail.com>2023-03-02 11:08:49 -0800
commit9cdc0aca9b599cd5626cba853b63dc99ce4a2213 (patch)
treedb47b43be810e75433e8527ccdc7ce7c3664a35e /Source/Core/VideoCommon/Present.cpp
parent78428dd8db9e6711cb3bf77b7dc8c99998d8ba72 (diff)
Software: Fix "Auto-Adjust Window Size"
This also needs to be handled on the software renderer path.
Diffstat (limited to 'Source/Core/VideoCommon/Present.cpp')
-rw-r--r--Source/Core/VideoCommon/Present.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Present.cpp b/Source/Core/VideoCommon/Present.cpp
index 78e09de3e5..25ec2f27b0 100644
--- a/Source/Core/VideoCommon/Present.cpp
+++ b/Source/Core/VideoCommon/Present.cpp
@@ -524,7 +524,13 @@ void Presenter::Present()
// Video Software doesn't support drawing a UI or doing post-processing
// So just show the XFB
if (m_xfb_entry)
+ {
g_gfx->ShowImage(m_xfb_entry->texture.get(), m_xfb_rect);
+
+ // Update the window size based on the frame that was just rendered.
+ // Due to depending on guest state, we need to call this every frame.
+ SetWindowSize(m_xfb_rect.GetWidth(), m_xfb_rect.GetHeight());
+ }
return;
}