Prueba de SDL_SetWindowDisplayMode
This commit is contained in:
@@ -97,7 +97,7 @@ void Screen::blit()
|
|||||||
|
|
||||||
// Muestra información por pantalla
|
// Muestra información por pantalla
|
||||||
displayInfo();
|
displayInfo();
|
||||||
|
|
||||||
// Muestra las notificaciones
|
// Muestra las notificaciones
|
||||||
notify->render();
|
notify->render();
|
||||||
|
|
||||||
@@ -141,7 +141,8 @@ void Screen::blit()
|
|||||||
void Screen::setVideoMode(int videoMode)
|
void Screen::setVideoMode(int videoMode)
|
||||||
{
|
{
|
||||||
#ifdef ARCADE
|
#ifdef ARCADE
|
||||||
//videoMode = SCREEN_VIDEO_MODE_WINDOW;
|
// videoMode = SCREEN_VIDEO_MODE_WINDOW;
|
||||||
|
videoMode = SCREEN_VIDEO_MODE_FULLSCREEN;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Si está activo el modo ventana quita el borde
|
// Si está activo el modo ventana quita el borde
|
||||||
@@ -172,6 +173,13 @@ void Screen::setVideoMode(int videoMode)
|
|||||||
{
|
{
|
||||||
// Aplica el modo de video
|
// Aplica el modo de video
|
||||||
SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP);
|
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
|
// Oculta el puntero
|
||||||
SDL_ShowCursor(SDL_DISABLE);
|
SDL_ShowCursor(SDL_DISABLE);
|
||||||
|
|||||||
Reference in New Issue
Block a user