Change resolution scale step size to 10%
This commit is contained in:
@@ -646,16 +646,16 @@ void scenes::lobby::gui_settings()
|
|||||||
const auto current = config.resolution_scale;
|
const auto current = config.resolution_scale;
|
||||||
const auto width = stream_view.recommendedImageRectWidth;
|
const auto width = stream_view.recommendedImageRectWidth;
|
||||||
const auto height = stream_view.recommendedImageRectHeight;
|
const auto height = stream_view.recommendedImageRectHeight;
|
||||||
auto intScale = int(current * 100);
|
auto intScale = int(current * 10);
|
||||||
const auto slider = ImGui::SliderInt(
|
const auto slider = ImGui::SliderInt(
|
||||||
_("Resolution scale").append("##resolution_scale").c_str(),
|
_("Resolution scale").append("##resolution_scale").c_str(),
|
||||||
&intScale,
|
&intScale,
|
||||||
50,
|
5,
|
||||||
350,
|
35,
|
||||||
fmt::format(_F("%d%% - {}x{} per eye"), int(width * current), int(height * current)).c_str());
|
fmt::format(_F("{}%% - {}x{} per eye"), intScale * 10, int(width * current), int(height * current)).c_str());
|
||||||
if (slider)
|
if (slider)
|
||||||
{
|
{
|
||||||
config.resolution_scale = intScale * 0.01;
|
config.resolution_scale = intScale * 0.1;
|
||||||
config.save();
|
config.save();
|
||||||
}
|
}
|
||||||
imgui_ctx->vibrate_on_hover();
|
imgui_ctx->vibrate_on_hover();
|
||||||
|
|||||||
+2
-2
@@ -216,8 +216,8 @@ msgstr "Escala de resolución"
|
|||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:655
|
#: client/scenes/lobby_gui.cpp:655
|
||||||
#, c-format, c++-format
|
#, c-format, c++-format
|
||||||
msgid "%d%% - {}x{} per eye"
|
msgid "{}%% - {}x{} per eye"
|
||||||
msgstr "%d%% - {}x{} por ojo"
|
msgstr "{}%% - {}x{} por ojo"
|
||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:666
|
#: client/scenes/lobby_gui.cpp:666
|
||||||
#, c++-format
|
#, c++-format
|
||||||
|
|||||||
+2
-2
@@ -217,8 +217,8 @@ msgstr "Échelle"
|
|||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:655
|
#: client/scenes/lobby_gui.cpp:655
|
||||||
#, c-format, c++-format
|
#, c-format, c++-format
|
||||||
msgid "%d%% - {}x{} per eye"
|
msgid "{}%% - {}x{} per eye"
|
||||||
msgstr "%d%% - {}x{} par œil"
|
msgstr "{}%% - {}x{} par œil"
|
||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:666
|
#: client/scenes/lobby_gui.cpp:666
|
||||||
#, c++-format
|
#, c++-format
|
||||||
|
|||||||
+2
-2
@@ -213,8 +213,8 @@ msgstr "Scala di risoluzione"
|
|||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:655
|
#: client/scenes/lobby_gui.cpp:655
|
||||||
#, c-format, c++-format
|
#, c-format, c++-format
|
||||||
msgid "%d%% - {}x{} per eye"
|
msgid "{}%% - {}x{} per eye"
|
||||||
msgstr "%d%% - {}x{} per occhio"
|
msgstr "{}%% - {}x{} per occhio"
|
||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:666
|
#: client/scenes/lobby_gui.cpp:666
|
||||||
#, c++-format
|
#, c++-format
|
||||||
|
|||||||
+2
-2
@@ -204,8 +204,8 @@ msgstr "解像度"
|
|||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:655
|
#: client/scenes/lobby_gui.cpp:655
|
||||||
#, c-format, c++-format
|
#, c-format, c++-format
|
||||||
msgid "%d%% - {}x{} per eye"
|
msgid "{}%% - {}x{} per eye"
|
||||||
msgstr "%d%% - 目あたり{}x{}"
|
msgstr "{}%% - 目あたり{}x{}"
|
||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:666
|
#: client/scenes/lobby_gui.cpp:666
|
||||||
#, c++-format
|
#, c++-format
|
||||||
|
|||||||
+2
-2
@@ -212,8 +212,8 @@ msgstr "Skala rozdzielczości"
|
|||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:655
|
#: client/scenes/lobby_gui.cpp:655
|
||||||
#, c-format, c++-format
|
#, c-format, c++-format
|
||||||
msgid "%d%% - {}x{} per eye"
|
msgid "{}%% - {}x{} per eye"
|
||||||
msgstr "%d%% - {}x{} na oko"
|
msgstr "{}%% - {}x{} na oko"
|
||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:666
|
#: client/scenes/lobby_gui.cpp:666
|
||||||
#, c++-format
|
#, c++-format
|
||||||
|
|||||||
@@ -218,8 +218,8 @@ msgstr "Escala de resolução"
|
|||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:655
|
#: client/scenes/lobby_gui.cpp:655
|
||||||
#, c-format, c++-format
|
#, c-format, c++-format
|
||||||
msgid "%d%% - {}x{} per eye"
|
msgid "{}%% - {}x{} per eye"
|
||||||
msgstr "%d%% - {}x{} por olho"
|
msgstr "{}%% - {}x{} por olho"
|
||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:666
|
#: client/scenes/lobby_gui.cpp:666
|
||||||
#, c++-format
|
#, c++-format
|
||||||
|
|||||||
+2
-2
@@ -213,8 +213,8 @@ msgstr "Масштаб разрешения"
|
|||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:655
|
#: client/scenes/lobby_gui.cpp:655
|
||||||
#, c-format, c++-format
|
#, c-format, c++-format
|
||||||
msgid "%d%% - {}x{} per eye"
|
msgid "{}%% - {}x{} per eye"
|
||||||
msgstr "%d%% - {}x{} на каждый глаз"
|
msgstr "{}%% - {}x{} на каждый глаз"
|
||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:666
|
#: client/scenes/lobby_gui.cpp:666
|
||||||
#, c++-format
|
#, c++-format
|
||||||
|
|||||||
+2
-2
@@ -199,8 +199,8 @@ msgstr "Rozlíšenie"
|
|||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:894
|
#: client/scenes/lobby_gui.cpp:894
|
||||||
#, c-format, c++-format
|
#, c-format, c++-format
|
||||||
msgid "%d%% - {}x{} per eye"
|
msgid "{}%% - {}x{} per eye"
|
||||||
msgstr "%d%% - {}x{} na oko"
|
msgstr "{}%% - {}x{} na oko"
|
||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:905
|
#: client/scenes/lobby_gui.cpp:905
|
||||||
#, c++-format
|
#, c++-format
|
||||||
|
|||||||
+2
-2
@@ -214,8 +214,8 @@ msgstr "Çözünürlük ölçeği"
|
|||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:655
|
#: client/scenes/lobby_gui.cpp:655
|
||||||
#, c-format, c++-format
|
#, c-format, c++-format
|
||||||
msgid "%d%% - {}x{} per eye"
|
msgid "{}%% - {}x{} per eye"
|
||||||
msgstr "göz başına %d%% - {}x{}"
|
msgstr "göz başına {}%% - {}x{}"
|
||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:666
|
#: client/scenes/lobby_gui.cpp:666
|
||||||
#, c++-format
|
#, c++-format
|
||||||
|
|||||||
@@ -213,8 +213,8 @@ msgstr "分辨率缩放比例"
|
|||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:655
|
#: client/scenes/lobby_gui.cpp:655
|
||||||
#, c-format, c++-format
|
#, c-format, c++-format
|
||||||
msgid "%d%% - {}x{} per eye"
|
msgid "{}%% - {}x{} per eye"
|
||||||
msgstr "%d%% - 单眼 {}x{}"
|
msgstr "{}%% - 单眼 {}x{}"
|
||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:666
|
#: client/scenes/lobby_gui.cpp:666
|
||||||
#, c++-format
|
#, c++-format
|
||||||
|
|||||||
@@ -195,8 +195,8 @@ msgstr "解析度縮放比例"
|
|||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:638
|
#: client/scenes/lobby_gui.cpp:638
|
||||||
#, c-format, c++-format
|
#, c-format, c++-format
|
||||||
msgid "%d%% - {}x{} per eye"
|
msgid "{}%% - {}x{} per eye"
|
||||||
msgstr "%d%% - 單眼 {}x{}"
|
msgstr "{}%% - 單眼 {}x{}"
|
||||||
|
|
||||||
#: client/scenes/lobby_gui.cpp:649
|
#: client/scenes/lobby_gui.cpp:649
|
||||||
#, c++-format
|
#, c++-format
|
||||||
|
|||||||
Reference in New Issue
Block a user