Oculta el puntero del raton al compilar en modo ARCADE
This commit is contained in:
@@ -146,8 +146,13 @@ void Screen::setVideoMode(int videoMode)
|
||||
// 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;
|
||||
@@ -168,7 +173,7 @@ void Screen::setVideoMode(int videoMode)
|
||||
SDL_ShowCursor(SDL_DISABLE);
|
||||
|
||||
// Obten el alto y el ancho de la ventana
|
||||
//SDL_GetWindowSize(window, &windowWidth, &windowHeight);
|
||||
// SDL_GetWindowSize(window, &windowWidth, &windowHeight);
|
||||
|
||||
// Aplica el escalado al rectangulo donde se pinta la textura del juego
|
||||
if (options->video.integerScale)
|
||||
@@ -205,7 +210,7 @@ void Screen::setVideoMode(int videoMode)
|
||||
}
|
||||
else
|
||||
{
|
||||
//dest = {0, 0, windowWidth, windowHeight};
|
||||
// dest = {0, 0, windowWidth, windowHeight};
|
||||
dest = {0, 0, gameCanvasWidth, gameCanvasHeight};
|
||||
}
|
||||
}
|
||||
@@ -227,7 +232,7 @@ void Screen::setVideoMode(int videoMode)
|
||||
else
|
||||
{
|
||||
// El renderizador pasa a tener el tamaño de la pantalla en fullscreen o del juego en modo ventana
|
||||
//SDL_RenderSetLogicalSize(renderer, windowWidth, windowHeight);
|
||||
// SDL_RenderSetLogicalSize(renderer, windowWidth, windowHeight);
|
||||
SDL_RenderSetLogicalSize(renderer, gameCanvasWidth, gameCanvasHeight);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user