i per fi ja comença a tornar tot a la normalitat

This commit is contained in:
2025-03-05 20:52:34 +01:00
parent 5a8747cc4b
commit 241732752a
25 changed files with 75 additions and 81 deletions

View File

@@ -423,7 +423,7 @@ void Ending2::createSpriteTexts()
const int Y = sprites_.at(i)->getPosY() + sprites_.at(i)->getHeight() + DIST_SPRITE_TEXT_;
// Crea la surface
auto surface = std::make_shared<Surface>(Screen::get()->getRendererSurface(), W, H);
auto surface = std::make_shared<Surface>(W, H);
Screen::get()->setRendererSurface(surface);
text->write(0, 0, txt);
@@ -455,7 +455,7 @@ void Ending2::createTexts()
const int y = options.game.height + (text->getCharacterSize() * (i * 2));
// Crea la surface
auto surface = std::make_shared<Surface>(Screen::get()->getRendererSurface(), w, h);
auto surface = std::make_shared<Surface>(w, h);
Screen::get()->setRendererSurface(surface);
text->write(0, 0, list[i]);
@@ -484,7 +484,7 @@ void Ending2::createTexts()
const int y = START + (text->getCharacterSize() * (i * 2));
// Crea la surface
auto surface = std::make_shared<Surface>(Screen::get()->getRendererSurface(), w, h);
auto surface = std::make_shared<Surface>(w, h);
Screen::get()->setRendererSurface(surface);
text->write(0, 0, list[i]);