From 1e2f121d826f39816991b1a79679ac1ee8843de5 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Tue, 10 Sep 2024 13:23:47 +0200 Subject: [PATCH] Llevada tota la merda que he posat este mati --- source/common/screen.cpp | 8 ++++---- source/director.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/common/screen.cpp b/source/common/screen.cpp index c844670..8ce2e2a 100644 --- a/source/common/screen.cpp +++ b/source/common/screen.cpp @@ -141,8 +141,8 @@ void Screen::blit() void Screen::setVideoMode(int videoMode) { #ifdef ARCADE - // videoMode = SCREEN_VIDEO_MODE_WINDOW; - videoMode = SCREEN_VIDEO_MODE_FULLSCREEN; + videoMode = SCREEN_VIDEO_MODE_WINDOW; + //videoMode = SCREEN_VIDEO_MODE_FULLSCREEN; #endif // Si está activo el modo ventana quita el borde @@ -174,7 +174,7 @@ void Screen::setVideoMode(int videoMode) // Aplica el modo de video SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP); #ifdef ARCADE - SDL_DisplayMode DM; + /*SDL_DisplayMode DM; DM.w = 1024; DM.h = 600; DM.refresh_rate = 60; @@ -185,7 +185,7 @@ void Screen::setVideoMode(int videoMode) else { std::cout << "Changed windows display mode" << std::endl; - } + }*/ #endif // Oculta el puntero diff --git a/source/director.cpp b/source/director.cpp index df676a2..7da0c94 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -211,13 +211,13 @@ bool Director::initSDL() // Muestra información de la pantalla if (options->console) { - std::cout << "\nDisplay modes list:" << std::endl; + /*std::cout << "\nDisplay modes list:" << std::endl; for (int i = 0; i < SDL_GetNumDisplayModes(0); ++i) { SDL_DisplayMode DM; SDL_GetDisplayMode(0,i,&DM); std::cout << " - " + std::to_string(DM.w) + "x" + std::to_string(DM.h) + " @ " + std::to_string(DM.refresh_rate) + "Hz" << std::endl; - } + }*/ SDL_DisplayMode DM; SDL_GetCurrentDisplayMode(0, &DM);