summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2026-05-25 12:17:29 -0700
committerGitHub <noreply@github.com>2026-05-25 12:17:29 -0700
commit379a1a7109a9d5659fd81f79aa9d9abcf7914817 (patch)
tree1bb7c212a8a2db9166ebdf881156783065942c19 /Source/Core/DolphinQt
parent25a6205ffb69a265f3774af38a0a73b19780487e (diff)
parentfb4ff3e51b2c41f9fc44116916fc2deb1cfa366a (diff)
Merge pull request #14607 from elyashue/internal-resolution-display
VideoCommon: Added option for showcasing internal resolution
Diffstat (limited to 'Source/Core/DolphinQt')
-rw-r--r--Source/Core/DolphinQt/Settings/OnScreenDisplayPane.cpp9
-rw-r--r--Source/Core/DolphinQt/Settings/OnScreenDisplayPane.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Settings/OnScreenDisplayPane.cpp b/Source/Core/DolphinQt/Settings/OnScreenDisplayPane.cpp
index 9ff343d00e..37239b9c74 100644
--- a/Source/Core/DolphinQt/Settings/OnScreenDisplayPane.cpp
+++ b/Source/Core/DolphinQt/Settings/OnScreenDisplayPane.cpp
@@ -43,6 +43,8 @@ void OnScreenDisplayPane::CreateLayout()
performance_box->setLayout(performance_layout);
m_show_fps = new ConfigBool(tr("Show FPS"), Config::GFX_SHOW_FPS);
+ m_show_internal_resolution =
+ new ConfigBool(tr("Show Internal Resolution"), Config::GFX_SHOW_INTERNAL_RESOLUTION);
m_show_ftimes = new ConfigBool(tr("Show Frame Times"), Config::GFX_SHOW_FTIMES);
m_show_vps = new ConfigBool(tr("Show VPS"), Config::GFX_SHOW_VPS);
m_show_vtimes = new ConfigBool(tr("Show VBlank Times"), Config::GFX_SHOW_VTIMES);
@@ -104,6 +106,7 @@ void OnScreenDisplayPane::CreateLayout()
debug_layout->addWidget(m_show_statistics, 0, 0);
debug_layout->addWidget(m_show_proj_statistics, 0, 1);
+ debug_layout->addWidget(m_show_internal_resolution, 1, 0);
// Stack GroupBoxes
auto* main_layout = new QVBoxLayout;
@@ -150,6 +153,11 @@ void OnScreenDisplayPane::AddDescriptions()
QT_TR_NOOP("Shows the number of distinct frames rendered per second as a measure of "
"visual smoothness.<br><br><dolphin_emphasis>If unsure, leave this "
"unchecked.</dolphin_emphasis>");
+
+ static const char TR_SHOW_INTERNAL_RESOLUTION_DESCRIPTION[] =
+ QT_TR_NOOP("Shows the internal resolution in pixels, as a product of "
+ "width and height. <br><br><dolphin_emphasis>If unsure, leave this "
+ "unchecked.</dolphin_emphasis>");
static const char TR_SHOW_FTIMES_DESCRIPTION[] =
QT_TR_NOOP("Shows the average time in ms between each distinct rendered frame alongside "
"the standard deviation.<br><br><dolphin_emphasis>If unsure, leave this "
@@ -222,6 +230,7 @@ void OnScreenDisplayPane::AddDescriptions()
m_font_size->SetDescription(tr(TR_OSD_FONT_SIZE_DESCRIPTION));
m_show_fps->SetDescription(tr(TR_SHOW_FPS_DESCRIPTION));
+ m_show_internal_resolution->SetDescription(tr(TR_SHOW_INTERNAL_RESOLUTION_DESCRIPTION));
m_show_ftimes->SetDescription(tr(TR_SHOW_FTIMES_DESCRIPTION));
m_show_vps->SetDescription(tr(TR_SHOW_VPS_DESCRIPTION));
m_show_vtimes->SetDescription(tr(TR_SHOW_VTIMES_DESCRIPTION));
diff --git a/Source/Core/DolphinQt/Settings/OnScreenDisplayPane.h b/Source/Core/DolphinQt/Settings/OnScreenDisplayPane.h
index 6e02ce9239..27653d009c 100644
--- a/Source/Core/DolphinQt/Settings/OnScreenDisplayPane.h
+++ b/Source/Core/DolphinQt/Settings/OnScreenDisplayPane.h
@@ -25,6 +25,7 @@ private:
// Performance
ConfigBool* m_show_fps;
+ ConfigBool* m_show_internal_resolution;
ConfigBool* m_show_ftimes;
ConfigBool* m_show_vps;
ConfigBool* m_show_vtimes;