From 6d5d5ceedef65f100d66445429d4b72feef9fb49 Mon Sep 17 00:00:00 2001 From: SutandoTsukai181 <52977072+SutandoTsukai181@users.noreply.github.com> Date: Sat, 2 May 2020 18:10:27 +0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Ben --- src/citra/default_ini.h | 4 ++-- src/citra_qt/configuration/configure_general.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/citra/default_ini.h b/src/citra/default_ini.h index f654a80b5..43b068985 100644 --- a/src/citra/default_ini.h +++ b/src/citra/default_ini.h @@ -137,7 +137,7 @@ texture_filter_name = # Limits the speed of the game to run no faster than this value as a percentage of target speed. # Will not have an effect if unthrottled is enabled. -# 1 - 9999: Speed limit as a percentage of target game speed. 0 for unthrottled. 100 (default) +# 5 - 995: Speed limit as a percentage of target game speed. 0 for unthrottled. 100 (default) frame_limit = # Overrides the frame limiter to use frame_limit_alternate instead of frame_limit. @@ -145,7 +145,7 @@ frame_limit = use_frame_limit_alternate = # Alternate speed limit to be used instead of frame_limit if use_frame_limit_alternate is enabled -# 1 - 9999: Speed limit as a percentage of target game speed. 0 for unthrottled. 200 (default) +# 5 - 995: Speed limit as a percentage of target game speed. 0 for unthrottled. 200 (default) frame_limit_alternate = # The clear color for the renderer. What shows up on the sides of the bottom screen. diff --git a/src/citra_qt/configuration/configure_general.cpp b/src/citra_qt/configuration/configure_general.cpp index 6e6162f75..b03efb044 100644 --- a/src/citra_qt/configuration/configure_general.cpp +++ b/src/citra_qt/configuration/configure_general.cpp @@ -35,7 +35,7 @@ ConfigureGeneral::ConfigureGeneral(QWidget* parent) ui->game_speed_display_label->setText(tr("unthrottled")); } else { ui->game_speed_display_label->setText( - QStringLiteral("%1%").arg(SliderToSettings(value)).rightJustified(11)); + QStringLiteral("%1%").arg(SliderToSettings(value)).rightJustified(tr("unthrottled").size())); } }); @@ -44,7 +44,7 @@ ConfigureGeneral::ConfigureGeneral(QWidget* parent) ui->game_speed_alternate_display_label->setText(tr("unthrottled")); } else { ui->game_speed_alternate_display_label->setText( - QStringLiteral("%1%").arg(SliderToSettings(value)).rightJustified(11)); + QStringLiteral("%1%").arg(SliderToSettings(value)).rightJustified(tr("unthrottled").size())); } }); } @@ -72,7 +72,7 @@ void ConfigureGeneral::SetConfiguration() { } else { ui->game_speed_display_label->setText(QStringLiteral("%1%") .arg(SliderToSettings(ui->frame_limit->value())) - .rightJustified(11)); + .rightJustified(tr("unthrottled").size())); } ui->toggle_alternate_speed->setChecked(Settings::values.use_frame_limit_alternate); @@ -89,7 +89,7 @@ void ConfigureGeneral::SetConfiguration() { ui->game_speed_alternate_display_label->setText( QStringLiteral("%1%") .arg(SliderToSettings(ui->frame_limit_alternate->value())) - .rightJustified(11)); + .rightJustified(tr("unthrottled").size())); } }