Prueba de SDL_SetWindowDisplayMode
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user