arreglos d'estil
This commit is contained in:
@@ -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_);
|
||||
|
||||
Reference in New Issue
Block a user