arreglos d'estil

This commit is contained in:
2025-03-21 08:42:54 +01:00
parent 2ee2d5c45d
commit 0f8de0d8b5
2 changed files with 3 additions and 11 deletions

View File

@@ -137,11 +137,7 @@ void Screen::clearRenderer(Color color)
}
// Prepara para empezar a dibujar en la textura de juego
void Screen::start()
{
//SDL_SetRenderTarget(renderer_, game_texture_);
setRendererSurface(nullptr);
}
void Screen::start() { setRendererSurface(nullptr); }
// Vuelca el contenido del renderizador en pantalla
void Screen::render()
@@ -164,9 +160,6 @@ void Screen::setVideoMode(int mode)
// Actualiza las opciones
options.video.mode = mode;
// Mostrar u ocultar el cursor según el modo
SDL_ShowCursor(options.video.mode == 0 ? SDL_ENABLE : SDL_DISABLE);
// Configura el modo de pantalla y ajusta la ventana
SDL_SetWindowFullscreen(window_, options.video.mode);
adjustWindowSize();
@@ -381,7 +374,6 @@ void Screen::processPaletteList()
// Copia la surface a la textura
void Screen::surfaceToTexture()
{
// Si está el borde activo, vuelca gameCanvas sobre borderCanvas
if (options.video.border.enabled)
{
border_surface_->copyToTexture(renderer_, border_texture_);