From ca93a5191fef40947a6fac935ce814fca8a2a295 Mon Sep 17 00:00:00 2001 From: Sam Belliveau Date: Wed, 28 Jun 2023 16:14:26 -0400 Subject: Video: Added Box Resampling Edited by Filoppi --- Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp | 8 ++++++-- Source/Core/VideoCommon/VideoConfig.h | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp b/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp index 67fd7da7b9..ee525ef001 100644 --- a/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp @@ -120,6 +120,8 @@ void EnhancementsWidget::CreateWidgets() static_cast(OutputResamplingMode::NearestNeighbor)); m_output_resampling_combo->addItem(tr("Sharp Bilinear"), static_cast(OutputResamplingMode::SharpBilinear)); + m_output_resampling_combo->addItem(tr("Box Resampling"), + static_cast(OutputResamplingMode::BoxResampling)); m_configure_color_correction = new ToolTipPushButton(tr("Configure")); @@ -497,8 +499,10 @@ void EnhancementsWidget::AddDescriptions() "
\"Hermite\" might offer the best quality when upscaling," " at a slightly bigger perform cost.
\"Catmull-Rom\" is best for downscaling." "
\"Nearest Neighbor\" doesn't do any resampling, select if you like a pixelated look." - "
\"Sharp Bilinear\" works best with 2D games at low resolutions, use if you like a" - " sharp look.

If unsure, select 'Default'."); + "
\"Sharp Bilinear\" works best with 2D games at low resolutions, use if you like a sharp" + " look." + "
\"Box Resampling\" is most expensive but also most accurate downscaling method." + "
If unsure, select 'Default'."); static const char TR_COLOR_CORRECTION_DESCRIPTION[] = QT_TR_NOOP("A group of features to make the colors more accurate, matching the color space " "Wii and GC games were meant for."); diff --git a/Source/Core/VideoCommon/VideoConfig.h b/Source/Core/VideoCommon/VideoConfig.h index affbf78dec..dcdc631a40 100644 --- a/Source/Core/VideoCommon/VideoConfig.h +++ b/Source/Core/VideoCommon/VideoConfig.h @@ -61,6 +61,7 @@ enum class OutputResamplingMode : int CatmullRom, NearestNeighbor, SharpBilinear, + BoxResampling, }; enum class ColorCorrectionRegion : int -- cgit v1.2.3