Corregits mil warnings de int a float

Corregit getDisplayInfo per al calcul del zoomMax
This commit is contained in:
2025-10-16 10:12:03 +02:00
parent e811cf0a1d
commit 9a4b3b04a5
13 changed files with 95 additions and 55 deletions

View File

@@ -22,9 +22,16 @@ enum class ScreenFilter : Uint32 {
class Screen {
private:
// Constantes
static constexpr int WINDOWS_DECORATIONS_ = 35;
static constexpr int WINDOWS_DECORATIONS = 35; // Decoraciones de la ventana
struct DisplayMonitor {
std::string name;
int width;
int height;
int refresh_rate;
};
// Estructuras
struct FPS {
Uint32 ticks; // Tiempo en milisegundos desde que se comenzó a contar.
int frameCount; // Número acumulado de frames en el intervalo.
@@ -79,6 +86,7 @@ class Screen {
std::string info_resolution_; // Texto con la informacion de la pantalla
std::string vertex_shader_source_; // Almacena el vertex shader
std::string fragment_shader_source_; // Almacena el fragment shader
DisplayMonitor display_monitor_; // Informacion de la pantalla
#ifdef DEBUG
bool show_debug_info_ = false; // Indica si ha de mostrar/ocultar la información de la pantalla
@@ -119,6 +127,9 @@ class Screen {
// Muestra información por pantalla
void renderInfo();
// Obtiene información sobre la pantalla
void getDisplayInfo();
// Constructor
Screen(SDL_Window* window, SDL_Renderer* renderer);