ja navega pels menus en ServiceMenu
Ja aplica les opcions de video de ServiceMenu
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user