Skip to content

Commit

Permalink
GPU: Use display size for calculating internal screenshot size
Browse files Browse the repository at this point in the history
Fixes detail being lost due to added padding when not cropping.
  • Loading branch information
stenzek committed Feb 2, 2025
1 parent 64d3716 commit 4ceeb58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/gpu_presenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1165,8 +1165,10 @@ GSVector2i GPUPresenter::CalculateScreenshotSize(DisplayScreenshotMode mode) con
{
if (mode == DisplayScreenshotMode::InternalResolution)
{
float f_width = static_cast<float>(m_display_texture_view_width);
float f_height = static_cast<float>(m_display_texture_view_height);
float f_width =
m_display_width * (static_cast<float>(m_display_texture_view_width) / static_cast<float>(m_display_vram_width));
float f_height = m_display_height *
(static_cast<float>(m_display_texture_view_height) / static_cast<float>(m_display_vram_height));
if (!g_gpu_settings.gpu_show_vram)
GPU::ApplyPixelAspectRatioToSize(m_display_pixel_aspect_ratio, &f_width, &f_height);

Expand Down

0 comments on commit 4ceeb58

Please sign in to comment.