Afegida tecla per a canviar el integer scale

This commit is contained in:
2025-03-13 23:07:32 +01:00
parent 9692d01b42
commit f11cb32ac0
3 changed files with 10 additions and 0 deletions

View File

@@ -238,6 +238,14 @@ namespace globalInputs
return;
}
if (Input::get()->checkInput(InputType::VIDEO_INTEGER_SCALE, INPUT_DO_NOT_ALLOW_REPEAT, InputDeviceToUse::KEYBOARD))
{
options.video.integer_scale = !options.video.integer_scale;
SDL_RenderSetIntegerScale(Screen::get()->getRenderer(), options.video.integer_scale ? SDL_TRUE : SDL_FALSE);
Screen::get()->setVideoMode();
Notifier::get()->show({"Integer scale " + std::string(options.video.integer_scale ? "on" : "off")});
}
#ifdef DEBUG
// Comprueba el teclado para mostrar la información de debug
if (Input::get()->checkInput(InputType::SHOWINFO, INPUT_DO_NOT_ALLOW_REPEAT, InputDeviceToUse::KEYBOARD))