Prueba de SDL_SetWindowDisplayMode

This commit is contained in:
2024-09-10 12:16:18 +02:00
parent 2398e4136b
commit a5060b928f

View File

@@ -97,7 +97,7 @@ void Screen::blit()
// Muestra información por pantalla
displayInfo();
// Muestra las notificaciones
notify->render();
@@ -141,7 +141,8 @@ void Screen::blit()
void Screen::setVideoMode(int videoMode)
{
#ifdef ARCADE
//videoMode = SCREEN_VIDEO_MODE_WINDOW;
// videoMode = SCREEN_VIDEO_MODE_WINDOW;
videoMode = SCREEN_VIDEO_MODE_FULLSCREEN;
#endif
// Si está activo el modo ventana quita el borde
@@ -172,6 +173,13 @@ void Screen::setVideoMode(int videoMode)
{
// Aplica el modo de video
SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP);
#ifdef ARCADE
SDL_DisplayMode DM;
DM.w = 1024;
DM.h = 600;
DM.refresh_rate = 60;
SDL_SetWindowDisplayMode(window, &DM);
#endif
// Oculta el puntero
SDL_ShowCursor(SDL_DISABLE);