options: canviat size per zoom i v_sync per vsync

options: moguda la opció de window a la seua seccio
This commit is contained in:
2025-07-23 17:32:14 +02:00
parent 2db2ba420a
commit ca328f5011
6 changed files with 69 additions and 62 deletions

View File

@@ -1,6 +1,6 @@
#include "ui/service_menu.h"
#include <algorithm> // Para max
#include <algorithm> // Para max
#include "audio.h" // Para Audio
#include "lang.h" // Para getText, getCodeFromName, getNameFromCode
@@ -240,9 +240,9 @@ void ServiceMenu::initializeOptions() {
// --- Video ---
options_.push_back(std::make_unique<BoolOption>(Lang::getText("[SERVICE_MENU] FULLSCREEN"), SettingsGroup::VIDEO, &Options::video.fullscreen));
options_.push_back(std::make_unique<IntOption>(Lang::getText("[SERVICE_MENU] WINDOW_SIZE"), SettingsGroup::VIDEO, &Options::window.size, 1, Options::window.max_size, 1));
options_.push_back(std::make_unique<IntOption>(Lang::getText("[SERVICE_MENU] WINDOW_SIZE"), SettingsGroup::VIDEO, &Options::window.zoom, 1, Options::window.max_zoom, 1));
options_.push_back(std::make_unique<BoolOption>(Lang::getText("[SERVICE_MENU] SHADERS"), SettingsGroup::VIDEO, &Options::video.shaders));
options_.push_back(std::make_unique<BoolOption>(Lang::getText("[SERVICE_MENU] VSYNC"), SettingsGroup::VIDEO, &Options::video.v_sync));
options_.push_back(std::make_unique<BoolOption>(Lang::getText("[SERVICE_MENU] VSYNC"), SettingsGroup::VIDEO, &Options::video.vsync));
options_.push_back(std::make_unique<BoolOption>(Lang::getText("[SERVICE_MENU] INTEGER_SCALE"), SettingsGroup::VIDEO, &Options::video.integer_scale));
// --- Audio ---