fix: si deixaves el nom en blanc, t'asigna uno de un pool pero despres no arribava a la tabla

style: quan confirmes el nom, apareix centrat
This commit is contained in:
2025-06-28 09:53:22 +02:00
parent ac8d168893
commit 8af6d4ef28
5 changed files with 110 additions and 114 deletions

View File

@@ -362,15 +362,6 @@ void Intro::initSprites()
SDL_RenderRect(Screen::get()->getRenderer(), &rect1);
SDL_RenderRect(Screen::get()->getRenderer(), &rect2);
// Copia la textura con el dibujo sobre la textura de color aplicando blend modes
// SDL_FRect rect = {BORDER / 2, BORDER / 2, SPRITE_WIDTH, SPRITE_HEIGHT};
// auto inner_texture = Resource::get()->getTexture(TEXTURE_LIST.at(i))->getSDLTexture();
// SDL_SetTextureBlendMode(inner_texture, SDL_BLENDMODE_BLEND);
// SDL_SetTextureAlphaMod(inner_texture, 64);
// SDL_RenderTexture(Screen::get()->getRenderer(), inner_texture, nullptr, &rect);
// SDL_SetTextureBlendMode(inner_texture, SDL_BLENDMODE_NONE);
// SDL_SetTextureAlphaMod(inner_texture, 255);
// Deja el renderizador como estaba y añade la textura a la lista
SDL_SetRenderTarget(Screen::get()->getRenderer(), temp);
shadow_textures.push_back(shadow_texture);