Tocant coses d'Screen, pero no acaba de funcionar be res

This commit is contained in:
2025-03-11 14:16:02 +01:00
parent be857cc8c8
commit 059a9c863a
7 changed files with 187 additions and 184 deletions

View File

@@ -172,18 +172,20 @@ namespace globalInputs
// Comprueba el teclado para decrementar el tamaño de la ventana
if (Input::get()->checkInput(InputType::WINDOW_DEC_SIZE, INPUT_DO_NOT_ALLOW_REPEAT, InputDeviceToUse::KEYBOARD))
{
Screen::get()->decWindowSize();
const std::string size = std::to_string(options.video.window.size);
Notifier::get()->show({"Window size x" + size});
if (Screen::get()->decWindowZoom())
{
Notifier::get()->show({"Window zoom x" + std::to_string(options.video.window.zoom)});
}
return;
}
// Comprueba el teclado para incrementar el tamaño de la ventana
if (Input::get()->checkInput(InputType::WINDOW_INC_SIZE, INPUT_DO_NOT_ALLOW_REPEAT, InputDeviceToUse::KEYBOARD))
{
Screen::get()->incWindowSize();
const std::string size = std::to_string(options.video.window.size);
Notifier::get()->show({"Window size x" + size});
if (Screen::get()->incWindowZoom())
{
Notifier::get()->show({"Window zoom x" + std::to_string(options.video.window.zoom)});
}
return;
}
#endif