summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorSam Belliveau <sam.belliveau@gmail.com>2023-06-28 16:14:26 -0400
committerFiloppi <filippotarpini@hotmail.it>2023-08-18 02:00:56 +0300
commitca93a5191fef40947a6fac935ce814fca8a2a295 (patch)
tree1f6a2d370fb2eb5a11c2fd3890ab0a3235738aeb /Source
parent2edf81cdb054c1db7a32e45c87514f8d4c11f5d9 (diff)
Video: Added Box Resampling
Edited by Filoppi
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp8
-rw-r--r--Source/Core/VideoCommon/VideoConfig.h1
2 files changed, 7 insertions, 2 deletions
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<int>(OutputResamplingMode::NearestNeighbor));
m_output_resampling_combo->addItem(tr("Sharp Bilinear"),
static_cast<int>(OutputResamplingMode::SharpBilinear));
+ m_output_resampling_combo->addItem(tr("Box Resampling"),
+ static_cast<int>(OutputResamplingMode::BoxResampling));
m_configure_color_correction = new ToolTipPushButton(tr("Configure"));
@@ -497,8 +499,10 @@ void EnhancementsWidget::AddDescriptions()
"<br>\"Hermite\" might offer the best quality when upscaling,"
" at a slightly bigger perform cost.<br>\"Catmull-Rom\" is best for downscaling."
"<br>\"Nearest Neighbor\" doesn't do any resampling, select if you like a pixelated look."
- "<br>\"Sharp Bilinear\" works best with 2D games at low resolutions, use if you like a"
- " sharp look.<br><br><dolphin_emphasis>If unsure, select 'Default'.</dolphin_emphasis>");
+ "<br>\"Sharp Bilinear\" works best with 2D games at low resolutions, use if you like a sharp"
+ " look."
+ "<br>\"Box Resampling\" is most expensive but also most accurate downscaling method."
+ "<br><dolphin_emphasis>If unsure, select 'Default'.</dolphin_emphasis>");
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