From da64a5e08227fe5c475ee65c4b6d459e6b3114a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Wed, 23 Nov 2022 20:38:21 +0100 Subject: [PATCH] =?UTF-8?q?Oculta=20el=20rat=C3=B3n=20en=20el=20modo=20a?= =?UTF-8?q?=20pantalla=20completa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/common/screen.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/common/screen.cpp b/source/common/screen.cpp index 16f0011..355e25a 100644 --- a/source/common/screen.cpp +++ b/source/common/screen.cpp @@ -84,6 +84,8 @@ void Screen::blit() // Establece el modo de video void Screen::setVideoMode(int videoMode) { + SDL_ShowCursor(SDL_ENABLE); + // Aplica el modo de video SDL_SetWindowFullscreen(window, videoMode); @@ -112,6 +114,8 @@ void Screen::setVideoMode(int videoMode) // Si está activo el modo de pantalla completa añade el borde else if (videoMode == SDL_WINDOW_FULLSCREEN_DESKTOP) { + SDL_ShowCursor(SDL_DISABLE); + // Obten el alto y el ancho de la ventana SDL_GetWindowSize(window, &windowWidth, &windowHeight);