Llevada tota la merda que he posat este mati

This commit is contained in:
2024-09-10 13:23:47 +02:00
parent c93e824f86
commit 1e2f121d82
2 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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);