Compare commits
2 Commits
1b160c0584
...
ccfd864eab
| Author | SHA1 | Date | |
|---|---|---|---|
| ccfd864eab | |||
| f5b866b8c5 |
@@ -140,14 +140,23 @@ void Screen::blit()
|
||||
// Establece el modo de video
|
||||
void Screen::setVideoMode(int videoMode)
|
||||
{
|
||||
#ifdef ARCADE
|
||||
videoMode = SCREEN_VIDEO_MODE_WINDOW;
|
||||
#endif
|
||||
|
||||
// Si está activo el modo ventana quita el borde
|
||||
if (videoMode == SCREEN_VIDEO_MODE_WINDOW)
|
||||
{
|
||||
// Aplica el modo de video
|
||||
SDL_SetWindowFullscreen(window, 0);
|
||||
|
||||
#ifdef ARCADE
|
||||
// Oculta el puntero
|
||||
SDL_ShowCursor(SDL_DISABLE);
|
||||
#else
|
||||
// Muestra el puntero
|
||||
SDL_ShowCursor(SDL_ENABLE);
|
||||
#endif
|
||||
|
||||
windowWidth = gameCanvasWidth;
|
||||
windowHeight = gameCanvasHeight;
|
||||
|
||||
Reference in New Issue
Block a user