summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Present.cpp
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2026-07-05 13:28:31 -0700
committerGitHub <noreply@github.com>2026-07-05 13:28:31 -0700
commit774200dcf4ccea148ef357cc8cf86d8eab4446da (patch)
tree4cc18c009a9639916a7b18a650b9453c4aba43c7 /Source/Core/VideoCommon/Present.cpp
parentacf6060a5419d4adf61b1603c19916d5482e644a (diff)
parentbe1df92153d94b276fee69182d4774e7bfc1b3f1 (diff)
Merge pull request #14689 from JosJuice/android-internal-resolution-display
VideoCommon: Use XFB for internal resolution stats
Diffstat (limited to 'Source/Core/VideoCommon/Present.cpp')
-rw-r--r--Source/Core/VideoCommon/Present.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Present.cpp b/Source/Core/VideoCommon/Present.cpp
index 7c62730667..41d05f3652 100644
--- a/Source/Core/VideoCommon/Present.cpp
+++ b/Source/Core/VideoCommon/Present.cpp
@@ -174,6 +174,8 @@ void Presenter::ViSwap(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height,
.present_count = m_present_count++,
.emulated_timestamp = ticks,
.intended_present_time = presentation_time,
+ .frame_buffer_width = fb_width,
+ .frame_buffer_height = fb_height,
};
if (is_duplicate)
@@ -234,9 +236,11 @@ void Presenter::ImmediateSwap(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_
PresentInfo present_info{
.frame_count = m_frame_count++,
.present_count = m_present_count++,
- .reason = PresentInfo::PresentReason::Immediate,
.emulated_timestamp = ticks,
.intended_present_time = m_next_swap_estimated_time,
+ .reason = PresentInfo::PresentReason::Immediate,
+ .frame_buffer_width = fb_width,
+ .frame_buffer_height = fb_height,
};
auto& video_events = GetVideoEvents();