diff --git a/source/common/screen.cpp b/source/common/screen.cpp index bcca940..a1c37f2 100644 --- a/source/common/screen.cpp +++ b/source/common/screen.cpp @@ -72,7 +72,7 @@ void Screen::blit() SDL_RenderCopy(renderer, gameCanvas, nullptr, &dest); // Dibuja las notificaciones - renderNotifications(); + //renderNotifications(); // Muestra por pantalla el renderizador SDL_RenderPresent(renderer); @@ -89,21 +89,21 @@ void Screen::setVideoMode(int videoMode) { if (options->borderEnabled) { - windowWidth = (gameCanvasWidth + borderWidth) * options->windowSize; - windowHeight = (gameCanvasHeight + borderHeight) * options->windowSize; + windowWidth = gameCanvasWidth + borderWidth; + windowHeight = gameCanvasHeight + borderHeight; dest = {0 + (borderWidth / 2), 0 + (borderHeight / 2), gameCanvasWidth, gameCanvasHeight}; } else { - windowWidth = gameCanvasWidth * options->windowSize; - windowHeight = gameCanvasHeight * options->windowSize; + windowWidth = gameCanvasWidth; + windowHeight = gameCanvasHeight; dest = {0, 0, gameCanvasWidth, gameCanvasHeight}; } // Modifica el tamaño del renderizador y de la ventana - SDL_RenderSetLogicalSize(renderer, gameCanvasWidth, gameCanvasHeight); - SDL_SetWindowSize(window, windowWidth, windowHeight); + SDL_RenderSetLogicalSize(renderer, windowWidth, windowHeight); + SDL_SetWindowSize(window, windowWidth * options->windowSize, windowHeight * options->windowSize); } // Si está activo el modo de pantalla completa añade el borde