Afegides comprobacions de valors per al fitxer de configuració

This commit is contained in:
2025-02-28 11:34:51 +01:00
parent 366fe404ca
commit 3992fc08bf
3 changed files with 115 additions and 34 deletions

View File

@@ -18,6 +18,9 @@ enum class ScreenFilter : Uint32
class Screen
{
private:
// Constantes
static constexpr int WINDOWS_DECORATIONS_ = 35;
// [SINGLETON] Objeto privado
static Screen *screen_;
@@ -51,9 +54,6 @@ private:
// Ajusta el tamaño lógico del renderizador
void adjustRenderLogicalSize();
// Obtiene el tamaño máximo de zoom posible para la ventana
int getMaxZoom();
// Renderiza un frame negro
void renderBlackFrame();
@@ -126,6 +126,9 @@ public:
// Oculta la ventana
void hide();
// Obtiene el tamaño máximo de zoom posible para la ventana
int getMaxZoom();
// Getters
SDL_Renderer *getRenderer() { return renderer_; }
};