ja navega pels menus en ServiceMenu

Ja aplica les opcions de video de ServiceMenu
This commit is contained in:
2025-06-05 14:06:42 +02:00
parent 1a84f1b1b0
commit f1c576beef
7 changed files with 246 additions and 86 deletions

View File

@@ -411,4 +411,13 @@ void Screen::getSingletons()
{
serviceMenu_ = ServiceMenu::get();
notifier_ = Notifier::get();
}
// Aplica los valores de las opciones
void Screen::applySettings()
{
SDL_SetRenderVSync(renderer_, options.video.v_sync ? 1 : SDL_RENDERER_VSYNC_DISABLED);
SDL_SetRenderLogicalPresentation(Screen::get()->getRenderer(), param.game.width, param.game.height, options.video.integer_scale ? SDL_LOGICAL_PRESENTATION_INTEGER_SCALE : SDL_LOGICAL_PRESENTATION_LETTERBOX);
adjustWindowSize();
setFullscreenMode();
}