fix: no canviava el tamany de la finestra en fullscreen mode
This commit is contained in:
@@ -21,7 +21,6 @@ namespace GlobalEvents
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case SDL_EVENT_WINDOW_RESIZED:
|
case SDL_EVENT_WINDOW_RESIZED:
|
||||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "SDL_WINDOWEVENT_SIZE_CHANGED");
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -280,8 +280,6 @@ void Screen::initShaders()
|
|||||||
void Screen::adjustWindowSize()
|
void Screen::adjustWindowSize()
|
||||||
{
|
{
|
||||||
// Establece el nuevo tamaño
|
// Establece el nuevo tamaño
|
||||||
if (!Options::video.fullscreen)
|
|
||||||
{
|
|
||||||
const int WIDTH = param.game.width * Options::window.size;
|
const int WIDTH = param.game.width * Options::window.size;
|
||||||
const int HEIGHT = param.game.height * Options::window.size;
|
const int HEIGHT = param.game.height * Options::window.size;
|
||||||
|
|
||||||
@@ -299,7 +297,6 @@ void Screen::adjustWindowSize()
|
|||||||
|
|
||||||
initShaders();
|
initShaders();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Renderiza todos los overlays y efectos
|
// Renderiza todos los overlays y efectos
|
||||||
void Screen::renderOverlays()
|
void Screen::renderOverlays()
|
||||||
|
|||||||
Reference in New Issue
Block a user